Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upShould rule severity be configurable ? #1515
Comments
|
How do you use |
|
Thanks @jegannathanmaniganadan for opening this issue, this is something we want to consider as we re-vamp the configuration options for PSSA 2.0 (our next major version). As @bergmeister mentioned it would still be great to know how you use the severity warnings in your work flow? |
|
@SydneyhSmith I am glad to hear that. My reasons are almost covered by @bergmeister .
This is not much I am concerned about. Given that the PSSA (with custom rules too) & VSCode performance is not great, I usually turn off PSSA in VScode.
CI is where I am trying to make difference. Grouping based on |
PSSA already has the $includeRule = ((Get-ScriptAnalyzerRule -Severity Error) + (Get-ScriptAnalyzerRule -Name PSAvoidUsingCmdletAliases)).RuleNameAlso: you can pipe the results of |
I'd like to start the discussion about having an option of adjusting rule severity. I am not sure how PSSA community decides rule severity while onboarding any new rules. But I personally think it would be nice if I am given an option to upgrade some of the rules to Error or vice-versa.
For example, I would really like to upgrade
PSAvoidGlobalVars, PSAvoidUsingWriteHost, PSAvoidUsingPlainTextForPasswordrules severity toErrorwithin my organization. This would not be the case for everyone. Similarly, I would like to change some of them toInformation.Let me know if this was something discussed and ignored for any reason.