-
Notifications
You must be signed in to change notification settings - Fork 394
Rule suppression does not work for non builtin rules #584
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
@kapilmb if it's low on the backlog and if you can point me to the best "testing" method - ie how does one build from source and the best/easiestly test those changes, I'm happy to take a stab at it here. I imagine probably using scriptanalyzer as the C# library for VS debugging is probably easiest, so write a little stub application that invokes the analyzer with the params I'd need on a module with my custom rules & functions? Or is there something more elegant for testing/debugging? |
@kapilmb stab at it here: https://github.com/charlieschmidt/PSScriptAnalyzer Problems:
Initial thoughts on either of those problems? Happy to keep working at it. I suspect (1) is probably just a matter of rejiggering the responses from GetExternalRecord so it can still run the rules in parallel and return the appropriate lists. (2) - dunno. |
@charlieschmidt Thanks for the effort.
|
@charlieschmidt Merged your contribution in PR #588. Thanks again! I am leaving this open, as #588 fixes suppression for only AST based external rules. So that leaves the token based external rules not subject to suppression. Will add that through another PR then close this issue. |
Closing this as the fix in #588 fixes token based external rule suppression too! |
The current implementation supports rule suppression only for builtin rules.
The text was updated successfully, but these errors were encountered: