diff --git a/PSScriptAnalyzerSettings.desktop-3.0-windows.psd1 b/PSScriptAnalyzerSettings.desktop-3.0-windows.psd1 new file mode 100644 index 0000000..e57a95e --- /dev/null +++ b/PSScriptAnalyzerSettings.desktop-3.0-windows.psd1 @@ -0,0 +1,22 @@ +@{ + Severity = @('Error', 'Warning') + Rules = @{ + PSUseCompatibleCmdlets = @{ + Compatibility = @( + 'desktop-3.0-windows' + 'desktop-4.0-windows' + 'desktop-5.1.14393.206-windows' + ) + } + PSUseCompatibleSyntax = @{ + TargetedVersions = @( + '6.0' + '5.1' + '4.0' + '3.0' + '2.0' + ) + } + } + ExcludeRules = @('PSAvoidUsingWriteHost') +} diff --git a/PSScriptAnalyzerSettings.psd1 b/PSScriptAnalyzerSettings.psd1 new file mode 100644 index 0000000..5ce3a2a --- /dev/null +++ b/PSScriptAnalyzerSettings.psd1 @@ -0,0 +1,24 @@ +@{ + Severity = @('Error', 'Warning') + Rules = @{ + PSUseCompatibleCmdlets = @{ + Compatibility = @( + 'desktop-2.0-windows' + 'desktop-3.0-windows' + 'desktop-4.0-windows' + 'desktop-5.1.14393.206-windows' + 'core-6.1.0-windows' + ) + } + PSUseCompatibleSyntax = @{ + TargetedVersions = @( + '6.0' + '5.1' + '4.0' + '3.0' + '2.0' + ) + } + } + ExcludeRules = @('PSAvoidUsingWriteHost') +}