-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct Style Guideline violation in xGroup - Fixes #485 #508
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #508 +/- ##
===================================
Coverage 74% 74%
===================================
Files 27 27
Lines 4031 4031
Branches 4 4
===================================
Hits 3005 3005
Misses 1022 1022
Partials 4 4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @PlagueHO)
a discussion (no related file):
Hey @PlagueHO. All the changes look good. However it looks like there's still one more Script Analyzer warning we can address (although it doesn't show up in the CI report). Would you be able to get this one while you're at it? Thanks.
PS D:\xPSDesiredStateConfiguration-Issue-485\xPSDesiredStateConfiguration-Issue-485\DSCResources\MSFT_xGroupResource> in
voke-scriptanalyzer .\MSFT_xGroupResource.psm1
RuleName Severity ScriptName Line Message
-------- -------- ---------- ---- -------
PSUseSingularNouns Warning MSFT_xGrou 2473 The cmdlet 'Clear-GroupMembers' uses a plural noun.
pResource. A singular noun should be used instead.
psm1
Thanks @mhendric - sorry for not getting anything done this week. Still traveling for work. Will get back into this over the weekend. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 3 files reviewed, 1 unresolved discussion (waiting on @mhendric)
a discussion (no related file):
Previously, mhendric (Mike Hendrickson) wrote…
Hey @PlagueHO. All the changes look good. However it looks like there's still one more Script Analyzer warning we can address (although it doesn't show up in the CI report). Would you be able to get this one while you're at it? Thanks.
PS D:\xPSDesiredStateConfiguration-Issue-485\xPSDesiredStateConfiguration-Issue-485\DSCResources\MSFT_xGroupResource> in voke-scriptanalyzer .\MSFT_xGroupResource.psm1 RuleName Severity ScriptName Line Message -------- -------- ---------- ---- ------- PSUseSingularNouns Warning MSFT_xGrou 2473 The cmdlet 'Clear-GroupMembers' uses a plural noun. pResource. A singular noun should be used instead. psm1
Doh! Good catch. Fixed. I'll also fix in PSDscResources (it is a problem there too).
Arggg… #505 strikes again. Looks like this one will need to have CI kicked off again.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r2.
Reviewable status: complete! all files reviewed, all discussions resolved
Sorry @mhendric - can you review again - I had to rebase after the last merge. Should be trivial 🤞 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r3.
Reviewable status: 2 of 3 files reviewed, 1 unresolved discussion (waiting on @mhendric and @PlagueHO)
Tests/Unit/MSFT_xGroupResource.Tests.ps1, line 932 at r3 (raw file):
Quoted 5 lines of code…
<<<<<<< HEAD Mock -CommandName 'Clear-GroupMembers' -MockWith { } ======= Mock -CommandName 'Clear-GroupMember' -MockWith { } >>>>>>> Renamed Clear-GroupMembers helper function to Clear-GroupMember to remove violation of PowerShell best practice.
Looks like a failed merge needs to be corrected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 2 of 3 files reviewed, 1 unresolved discussion (waiting on @mhendric)
Tests/Unit/MSFT_xGroupResource.Tests.ps1, line 932 at r3 (raw file):
Previously, mhendric (Mike Hendrickson) wrote…
<<<<<<< HEAD Mock -CommandName 'Clear-GroupMembers' -MockWith { } ======= Mock -CommandName 'Clear-GroupMember' -MockWith { } >>>>>>> Renamed Clear-GroupMembers helper function to Clear-GroupMember to remove violation of PowerShell best practice.
Looks like a failed merge needs to be corrected.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This time hopefully! Thanks @mhendric!
Reviewable status: 2 of 3 files reviewed, 1 unresolved discussion (waiting on @mhendric)
…move violation of PowerShell best practice.
Rebased now and moved change log to new CHANGELOG.MD - should be good to go now @mhendric |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 3 files at r4.
Reviewable status: complete! all files reviewed, all discussions resolved
Pull Request (PR) description
This PR correct style guideline violations in xGroup. Trailing white space was also trimmed automatically by VSCode.
This Pull Request (PR) fixes the following issues
Task list
Entry should say what was changed, and how that affects users (if applicable).
and comment-based help.
This change is