-
Notifications
You must be signed in to change notification settings - Fork 395
Invoke-ScriptAnalyzer should implement SupportsShouldProcess #1517
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
@bergmeister we were discussing this and were thinking that since Invoke-ScriptAnalyzer does not change any state (or any script) that this might not be applicable--is there something we are missing? Thanks! |
@SydneyhSmith PSSA has internal and external state (CommandInfo cache in memory and DSC module cache in user profile path on disk). |
@SydneyhSmith After a conversation with @thomasrayner there also seems to be the case that people want to know which rules are run without having to parse the verbose output. If |
Seems like Personally I'm not totally convinced that But I think this is valuable discussion, and I don't see too much harm in adding the feature. Could be useful for debugging at least. |
Yes, |
Elaborating on what @bergmeister said, when I run PSSA in a CI environment like Azure Pipelines, I want to be able to publish the results to the Test Results section (ideally formatted as nUnit or something else compatible, but that's not the point of this issue). For the test results to be most meaningful, I'd want consistency over which rules showed up there each time so I can track when each file violated each rule and when. Maybe what I really want is for |
Issue #1296 and #672 track that. I feel we should close the latter in favour of the former though. |
Is there a larger discussion anywhere (or has there been one in the past) about how PSSA fits into CI/CD systems? |
Not aware, even Steve complained to me about this one but there is the PSCodeHealth module and its Azure DevOps extension here. |
From #1476 (comment)
The text was updated successfully, but these errors were encountered: