Skip to content

PSScriptAnalyzer default rules are not applying #4112

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

Closed
6 tasks done
PrzemyslawKlys opened this issue Aug 5, 2022 · 0 comments · Fixed by PowerShell/PowerShellEditorServices#1873
Closed
6 tasks done
Assignees
Labels

Comments

@PrzemyslawKlys
Copy link
Contributor

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

After updating to newest version suddenly got a lot of errors shown in my code by Error Lens

image

While I don't mind those new rules being enable by default it would be nice if those were warnings and not errors. Generally something changed and I don't know what :-)

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.22000.832
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22000.832
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Visual Studio Code Version

1.70.0
da76f93349a72022ca4670c1b84860304616aaa2
x64

Extension Version

Steps to Reproduce

Update to newest version and go to some functions

Visuals

No response

Logs

No response

@PrzemyslawKlys PrzemyslawKlys added the Issue-Bug A bug to squash. label Aug 5, 2022
@ghost ghost added the Needs: Triage Maintainer attention needed! label Aug 5, 2022
@andyleejordan andyleejordan changed the title In preview 2022.8.0 PSScriptAnalyzer treats warnings as errors + enables additional PSScriptAnalyzer rules PSScriptAnalyzer default rules are not applying Aug 5, 2022
@andyleejordan andyleejordan added Area-Script Analysis and removed Needs: Triage Maintainer attention needed! labels Aug 5, 2022
@andyleejordan andyleejordan self-assigned this Aug 5, 2022
@andyleejordan andyleejordan moved this to In Progress in American Pharoah Aug 5, 2022
Repository owner moved this from In Progress to Done in American Pharoah Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants