silverhack/Install and run PSScriptAnalyzer

Install and run PSScriptAnalyzer

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
pathSpecifies the path to the scripts or module to be analyzed. Wildcard characters are supported.yes.\
customRulePathUses only the custom rules defined in the specified paths to the analysis. To still use the built-in rules, add the -IncludeDefaultRules switch.no
recurseCustomRulePathAdds rules defined in subdirectories of the CustomRulePath location. By default, Invoke-ScriptAnalyzer uses only the custom rules defined in the specified file or directory. To still use the built-in rules, additionally use the -IncludeDefaultRules switch.no
excludeRuleOmits the specified rules from the Script Analyzer test. Wildcard characters are supported.no
includeDefaultRulesInvoke default rules along with Custom rules.no
includeRuleRuns only the specified rules in the Script Analyzer test. By default, PSScriptAnalyzer runs all rules.no
severityAfter running Script Analyzer with all rules, this parameter selects rule violations with the specified severity.no
recurseRuns Script Analyzer on the files in the Path directory and all subdirectories recursively.no
suppressedOnlyReturns rules that are suppressed, instead of analyzing the files in the path.no
fixFixes certain warnings which contain a fix in their DiagnosticRecord.no
enableExitExits PowerShell and returns an exit code equal to the number of error records. This can be useful in CI systems.no
reportSummaryWrites a report summary of the found warnings to the host.no
settingsFile path that contains user profile or hash table for ScriptAnalyzer.no

no outputs