-
Notifications
You must be signed in to change notification settings - Fork 382
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
Convert UseSingularNouns to configurable rule and add Windows to allowlist #1858
Conversation
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.
I'd be happy to accept it as-is but I am thinking it might be better to expose this allowList as a configurable setting so it can be overridden similar to how we decided to do for this rule when allow-listing az:
https://github.com/PowerShell/PSScriptAnalyzer/pull/1846/files#diff-0c1b69454498d51fc5f5ba732f2589578f37357dd80b111e8330fff529036908
I agree, as this could cut down on any future issues asking for additional allowList nouns. I can look into refactoring this as a configurable rule. For the default value, do you think it would still be proper to include |
Yes, in that case also happy to add Windows to default. |
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.
Thanks for the additional effort. Looks good to me 👍🏻
Closing and re-opening to re-trigger CI |
PR Summary
This PR:
PSUseSingularNouns
to a configurable ruleWindows
to thePSUseSingularNouns
allowlist, closing issue Windows should not be a plural noun #1736Relevant test has also been added.
PR Checklist
.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
to the beginning of the title and remove the prefix when the PR is ready.