-
Notifications
You must be signed in to change notification settings - Fork 395
PSSA doesn't respect the config I give it. #1060
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
@webtroter This is a duplicate of #1041 because |
Thank you @bergmeister. How would your proceed to ignore that error? It's blocking my build process. I just read your post on #1041, and I'm not sure how to filter out those DiagnosticRecords from the list of returned results. Thank you. |
@bergmeister I'm not sure I follow you there on the PowerShell warning side of things. There are probably a few points to address here:
@webtroter I think this whole discussion might be tangential to what you're trying to achieve. You should be able to filter your $saResults = Invoke-ScriptAnalyzer @scriptAnalysisParams | Where-Object { $_.RuleName -ne "TypeNotFound" } @JamesWTruher this is pretty relevant to a discussion we had the other day |
Anyway, I understand that all the things I'm suggesting are breaking changes. But they are ones that I think will improve the ease of use and API consistency for PSSA for everyone, especially anyone trying to embed PSSA in a hosted scenario. I was trying to write a PSSA GitHub bot the other week and the inability to extract an extent from the parse errors it emits was frustrating to say the least. |
Thank you @rjmholt . I'm using
|
I'm glad you could sort it out @webtroter Invoke-ScriptAnalyzer @scriptAnalyzerParams | Where-Object { $_.RuleName -ne 'TypeNotFound' } |
This is how I call PSSA :
This is the file failing.
https://gist.github.com/webtroter/d44a5725849ad4cd30bbadd1efb69bd2
The text was updated successfully, but these errors were encountered: