Skip to content

Commit fd6e87b

Browse files
bergmeisterTylerLeonhardt
authored andcommitted
Add more useful PSSA rules that should be enabled by default (#669)
* add more useful PSSA rules that should be enabled by default since the majority of people cannot or do not know how to customize them (yet) * add missing comma * As per PR discussion, PSPossibleIncorrectComparisonWithNull and PSAvoidDefaultValueForMandatoryParameter should be part of it. Therefore removing the others. But also adding the new PSAvoidTrailingWhitespace and PossibleIncorrectUsageOfRedirectionOperator rule * fix rule typo, thanks @rkeithhill
1 parent 5cc95e0 commit fd6e87b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/PowerShellEditorServices/Analysis/AnalysisService.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ public class AnalysisService : IDisposable
5353
"PSShouldProcess",
5454
"PSMissingModuleManifestField",
5555
"PSAvoidDefaultValueSwitchParameter",
56-
"PSUseDeclaredVarsMoreThanAssignments"
56+
"PSUseDeclaredVarsMoreThanAssignments",
57+
"PSPossibleIncorrectComparisonWithNull",
58+
"PSAvoidDefaultValueForMandatoryParameter",
59+
"PSAvoidTrailingWhitespace",
60+
"PSPossibleIncorrectUsageOfRedirectionOperator"
5761
};
5862

5963
#endregion // Private Fields

0 commit comments

Comments
 (0)