Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion PSScriptAnalyzerSettings.psd1
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
@{
IncludeRules = @('*')
# Scope analysis to actionable severities, dropping Information-level noise.
#
# ParseError must be listed. It is how PSScriptAnalyzer reports a file it
# could not parse at all, and naming Severity without it silently hides
# syntax-broken files: a file with a missing brace reports zero findings
# under @('Error', 'Warning'). Microsoft's documentation states this
# directly -- "To suppress ParseErrors, don't include it as a value in the
# Severity parameter" -- which is exactly what must not happen to a lint gate.
Severity = @('ParseError', 'Error', 'Warning')
}