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
BTW it would be nice if the team could offer a recommend standard name for these files. Or at least use it in the revised sample above. Perhaps something like PSScriptAnalyzerProfile.psd1 or maybe just ScriptAnalyzerProfile.psd1? I like using the PSD1 extension so that I get syntax coloring in my PowerShell editor (VSCode) when I'm editing this file.
Update: I notice that 1.4.0 will not complain if I pass a hashtable directly to -Profile but it also does not seem to honor the settings in the hashtable. Also the fact that the -Profile parameter is of type [string] leads me to believe this support just a path and not a hashtable. Perhaps the parameter should be renamed -ProfilePath or -SettingsPath (with an alias of 'Profile' to avoid compat breaks)?
The text was updated successfully, but these errors were encountered:
rkeithhill
added a commit
to rkeithhill/PSScriptAnalyzer
that referenced
this issue
Mar 23, 2016
This example doesn't work because
-Profile
now expects a path to a profile file:BTW it would be nice if the team could offer a recommend standard name for these files. Or at least use it in the revised sample above. Perhaps something like
PSScriptAnalyzerProfile.psd1
or maybe justScriptAnalyzerProfile.psd1
? I like using thePSD1
extension so that I get syntax coloring in my PowerShell editor (VSCode) when I'm editing this file.Here's an updated sample:
Update: I notice that 1.4.0 will not complain if I pass a hashtable directly to
-Profile
but it also does not seem to honor the settings in the hashtable. Also the fact that the-Profile
parameter is of type[string]
leads me to believe this support just a path and not a hashtable. Perhaps the parameter should be renamed-ProfilePath
or-SettingsPath
(with an alias of 'Profile' to avoid compat breaks)?The text was updated successfully, but these errors were encountered: