Skip to content
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

Fix AvoidUsingDoubleQuotesForConstantString information in overview README #1883

Conversation

michaeltlombardi
Copy link
Contributor

PR Summary

As identified1 by @BenedekFarkas, the line in the rules overview readme for AvoidUsingDoubleQuotesForConstantString incorrectly lists the severity as Warning and that the rule is configurable when the severity is Information2 and there aren't any configurable options.

This change copies the fix @BenedekFarkas kindly submitted to the docs site to ensure the documentation stays up-to-date.

PR Checklist

Footnotes

  1. For more information, see:

  2. Source code:

    https://github.com/PowerShell/PSScriptAnalyzer/blob/9a6ce978d870909e688d9da0d101d3fc00b504f0/Rules/AvoidUsingDoubleQuotesForConstantString.cs#L142

As identified[^1] by @BenedekFarkas, the line in the rules overview
readme for `AvoidUsingDoubleQuotesForConstantString` incorrectly lists
the severity as `Warning` and that the rule is configurable when the
severity is `Information`[^2] and there aren't any configurable options.

This change copies the fix @BenedekFarkas kindly submitted to the docs
site to ensure the documentation stays up-to-date.

[^1]: For more information, see:

      - MicrosoftDocs/PowerShell-Docs-Modules#128

[^2]: Source code:

      https://github.com/PowerShell/PSScriptAnalyzer/blob/9a6ce978d870909e688d9da0d101d3fc00b504f0/Rules/AvoidUsingDoubleQuotesForConstantString.cs#L142
Copy link
Collaborator

@bergmeister bergmeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making that change. This is corect

@bergmeister bergmeister changed the title (MAINT) Fix AvoidUsingDoubleQuotesForConstantString information in overview README Fix AvoidUsingDoubleQuotesForConstantString information in overview README Feb 22, 2023
@bergmeister bergmeister merged commit 19a6a18 into PowerShell:master Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants