File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ @ {
2+
3+ IncludeRules = @ (' PSUseApprovedVerbs' ,
4+ ' PSReservedCmdletChar' ,
5+ ' PSReservedParams' ,
6+ ' PSShouldProcess' ,
7+ ' PSUseShouldProcessForStateChangingFunctions' ,
8+ ' PSUseSingularNouns' ,
9+ ' PSMissingModuleManifestField' ,
10+ ' PSAvoidDefaultValueSwitchParameter' ,
11+ ' PSAvoidUsingCmdletAliases' ,
12+ ' PSAvoidUsingWMICmdlet' ,
13+ ' PSAvoidUsingEmptyCatchBlock' ,
14+ ' PSUseCmdletCorrectly' ,
15+ ' PSUseShouldProcessForStateChangingFunctions' ,
16+ ' PSAvoidUsingPositionalParameters' ,
17+ ' PSAvoidGlobalVars' ,
18+ ' PSUseDeclaredVarsMoreThanAssignments' ,
19+ ' PSAvoidUsingInvokeExpression' ,
20+ ' PSAvoidUsingPlainTextForPassword' ,
21+ ' PSAvoidUsingComputerNameHardcoded' ,
22+ ' PSUsePSCredentialType' ,
23+ ' PSDSC*'
24+ )
25+ Rules = @ {
26+ PSAvoidUsingCmdletAliases = @ {
27+ Whitelist = @ (" ?" , " %" )
28+ }
29+ }
30+ }
Original file line number Diff line number Diff line change 1+ Import-Module " $env: USERPROFILE \.vscode\extensions\ms-vscode.powershell-*\modules\PSScriptAnalyzer\*\PSScriptAnalyzer.psm1"
2+
3+ $Public = Get-ChildItem - Path $PSScriptRoot - Recurse - Filter " *.ps1" | ? { $_.Name [0 ].Equals($_.Name.ToUpper ()[0 ]) }
4+
5+ $Public | % { Invoke-ScriptAnalyzer - Path $_.fullname - Settings .\PSScriptAnalyzerSettings.psd1 }
You can’t perform that action at this time.
0 commit comments