You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documentation for Invoke-ScriptAnalyzer -Settings is out-of-date #1270
...
A Script Analyzer profile file is a text file that contains a hash table with one or more of the following keys:
-- Severity
-- IncludeRules
-- ExcludeRules
-- Rules
-- CustomRulePath
-- RecurseCustomRulePath
-- IncludeDefaultRules
...
* Ellipses indicate elision.
Actual behavior
Missing key "RecurseCustomRulePath".
...
A Script Analyzer profile file is a text file that contains a hash table with one or more of the following keys:
-- Severity
-- IncludeRules
-- ExcludeRules
-- Rules
-- CustomRulePath
-- IncludeDefaultRules
...
* Ellipses indicate elision.
Environment data
PS> $PSVersionTable
Name Value
---- -----
PSVersion 6.2.1
PSEdition Core
GitCommitId 6.2.1
OS Microsoft Windows 10.0.17763
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.10032.0, 6.2.1}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
PS> (Get-Module -ListAvailable PSScriptAnalyzer).Version | ForEach-Object { $_.ToString() }
1.18.0
Thanks, do you intent to open a PR for it? I have not written the RecurseCustomRulePath myself so would have to guess what it does but from what I have seen it makes it possible to specify a folder instead of a file for the use case of having custom rules in multiple files (or I guess also when using module manifests?). Having a look at the tests might help clarify as well.
P.S. We released PSSA 1.18.1 last week (this issue still applies though) and also changed the default of the main repo of this branch to be master instead of development, therefore you might want also want change the default branch in your fork as well to be master. https://devblogs.microsoft.com/powershell/release-of-powershell-script-analyzer-1-18-1
Thanks, do you intent to open a PR for it? I have not written the RecurseCustomRulePath myself so would have to guess what it does but from what I have seen it makes it possible to specify a folder instead of a file for the use case of having custom rules in multiple files (or I guess also when using module manifests?). Having a look at the tests might help clarify as well.
P.S. We released PSSA 1.18.1 last week (this issue still applies though) and also changed the default of the main repo of this branch to be master instead of development, therefore you might want also want change the default branch in your fork as well to be master. devblogs.microsoft.com/powershell/release-of-powershell-script-analyzer-1-18-1
Yes, I do intend to open a PR for it. And thanks for the heads up; I've rebased my branches onto master now.
Activity
bergmeister commentedon Jun 22, 2019
Thanks, do you intent to open a PR for it? I have not written the
RecurseCustomRulePathmyself so would have to guess what it does but from what I have seen it makes it possible to specify a folder instead of a file for the use case of having custom rules in multiple files (or I guess also when using module manifests?). Having a look at the tests might help clarify as well.P.S. We released PSSA 1.18.1 last week (this issue still applies though) and also changed the default of the main repo of this branch to be
masterinstead ofdevelopment, therefore you might want also want change the default branch in your fork as well to bemaster.https://devblogs.microsoft.com/powershell/release-of-powershell-script-analyzer-1-18-1
travisclagrone commentedon Jun 23, 2019
Yes, I do intend to open a PR for it. And thanks for the heads up; I've rebased my branches onto
masternow.