◐ Shell
clean mode source ↗

Fix rule suppression ID in compat rules by rjmholt · Pull Request #1432 · PowerShell/PSScriptAnalyzer

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@rjmholt

@rjmholt rjmholt commented

Apr 3, 2020

Copy link Copy Markdown

Contributor

PR Summary

The ruleId wasn't translated through in the compatibility diagnostic constructor. This fixes that.

PR Checklist

@rjmholt

rjmholt commented

Apr 3, 2020

Copy link Copy Markdown

Contributor Author

image

@bergmeister bergmeister left a comment

Copy link Copy Markdown

Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can an existing test be enhanced for an additional assertion against the rule id if easily possible? Otherwise LGTM

@rjmholt

rjmholt commented

Apr 3, 2020

Copy link Copy Markdown

Contributor Author

Can an existing test be enhanced for an additional assertion against the rule id if easily possible?

I'm thinking a similar thing, but I'd like to do that in a separate PR (which might be able to enhance these suppressions slightly as well)

bergmeister reacted with thumbs up emoji

@rjmholt rjmholt merged commit 975fcc6 into PowerShell:master

Apr 3, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@bergmeister bergmeister bergmeister approved these changes

+1 more reviewer

@TylerLeonhardt TylerLeonhardt TylerLeonhardt approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@rjmholt @TylerLeonhardt @bergmeister