-
Notifications
You must be signed in to change notification settings - Fork 400
Backport MSDocs changes #2085
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
Backport MSDocs changes #2085
Changes from 3 commits
b166135
9e546e4
fbf2905
bd274c0
e886653
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,11 @@ only be assigned in certain special cases to achieve a certain effect as a speci | |
|
||
To understand more about automatic variables, see `Get-Help about_Automatic_Variables`. | ||
|
||
<!-- TODO | ||
Ability to suppress was added in https://github.com/PowerShell/PSScriptAnalyzer/pull/1896 | ||
Need documentation for how to configure suppression of this rule. | ||
--> | ||
|
||
Comment on lines
+19
to
+23
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In my original PR I left this out because this comment relates more to work in MSDocs. Maybe a GitHub issue is a better place for it than a comment? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should add this information in both repos before release. I couldn't figure out how to configure this. Can you provide an example? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suppression is not different that any other rule. For example There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you only do this in code? Other rules can be configured using JSON. For example: https://learn.microsoft.com/powershell/utility-modules/psscriptanalyzer/rules/usesingularnouns#configuration There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suppression is only possible via annotating code with this attribute unless one decided to not run rule at all via PSSA settings but I wouldn't call that suppression: https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/using-scriptanalyzer?view=ps-modules#suppressing-rules |
||
## How | ||
|
||
Use variable names in functions or their parameters that do not conflict with automatic variables. | ||
|
Uh oh!
There was an error while loading. Please reload this page.