-
Notifications
You must be signed in to change notification settings - Fork 513
Use a customized rule (PowerShell script) with PSScriptAnalyzer ? #267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
At this point in time, the extension doesn't allow you to specify a path for |
@kapilmb is working on a new way for PSScriptAnalyzer to load settings which should support all of the parameters Invoke-ScriptAnalyzer can take. Hopefully we'll have that in for 0.8.0! |
Hey @kapilmb, is it possible to include a custom script-based rule using the new settings file work you did? Do you have an example of that somewhere? |
As of now, PSSA settings file does not support have the |
here is the issue PowerShell/PSScriptAnalyzer#675 |
@LaurentDardenne You can specify |
@bergmeister Thank you :-) |
It works with this prototype : I test again before closing. |
We can use the global or local configuration file (settings.json) of the project (Workspace) but once declared the global file, the local file is not taken into account. |
Is it possible to use a customized rule (PowerShell script) with PSScriptAnalyzer and VsCode ?
Or is it preferable to use rules written in C# ?
The text was updated successfully, but these errors were encountered: