-
Notifications
You must be signed in to change notification settings - Fork 510
Remove broken 'Select PSScriptAnalyzer Rules' command #2659
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@bergmeister can you also delete this file and all references? https://www.github.com/PowerShell/vscode-powershell/tree/master/src%2Ffeatures%2FSelectPSSARules.ts (It'd be good to do a quick scan of the repo for other references) The reason I ask is cause I think once PSSA vNext is out, we can totally redesign this feature and if we need to reference it in the future, we have it in the git history. |
@TylerLeonhardt Good point. Will do. Just FYI this came up again in the PowerShell
I know the feature was polarizing before anyway due to it's lack of persistence but what was the reason for abandoning it completely? As far as I see it broke because the GetPSSARulesRequest\GetPSSARulesRequest classes in PSES were removed. Would it be easy to re-add them or would it be much more difficult due to re-architecture? |
Like I said in #2422 ... My reasoning was:
I still doubt that many users actually use it and it even promotes a less than ideal practice:
I want to bring back the feature because the UX is not terrible (selecting the rules you care about) but considering PSSA v2 is going to change the rules a bunch, it just doesn't seem like it's worth the time at the moment. If you want to bring it back, I won't say no to it, but I don't have the bandwidth, unfortunately. |
OK, I've removed the code for now, which will at least resolve the user confusion of people who try to use the command. I might try to see if it is easy to re-add at a later point in time, so maybe one step at a time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for doing this Chris!
PR Summary
Related (but not fixing the issue itself): #2422
PR Checklist
Note: Tick the boxes below that apply to this pull request by putting an
x
between the square brackets.Please mark anything not applicable to this PR
NA
.WIP:
to the beginning of the title and remove the prefix when the PR is ready