Skip to content

Add rule severity support for Get-ScriptAnalyzerRule #52

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

Merged
merged 3 commits into from
Apr 22, 2015
Merged

Conversation

yutingc
Copy link
Contributor

@yutingc yutingc commented Apr 22, 2015

Added -Severity parameter in Get-ScriptAnalyzerRule cmdlet. Will filter the rules base on the rule severity specified.

Also updated the output format of Get-ScriptAnalyzerRule and Invoke-ScriptAnalyzer to make them look more aligned.

yutingc added 2 commits April 21, 2015 17:46
1) Added rule severity to each rule including interfaces
2) Add parameter -Severity to Get-ScriptAnalyzerRule to enable filtering
rules based on severity
3) Update Get-ScriptAnalyzerRule format
4) Remove unnessary references from each rule
Modified the column width of "Severity" in Invoke-ScriptAnalyzer output
format.
@yutingc
Copy link
Contributor Author

yutingc commented Apr 22, 2015

BTW, I checked the activities of msftclas, seems like it's an auto-check program designed for validating our license agreement signing. Since we join the MSFT open source group, we are fine ;)

@raghushantha
Copy link
Member

Looks good. Please run all the tests since this change touches a lot of files.

@yutingc
Copy link
Contributor Author

yutingc commented Apr 22, 2015

Tests passed for this change. I will open another pull request for test failures due to some other bugs in the rule implementations.

@raghushantha
Copy link
Member

ok. Thanks

yutingc added a commit that referenced this pull request Apr 22, 2015
Add rule severity support for Get-ScriptAnalyzerRule
@yutingc yutingc merged commit 9f70999 into BugFixes Apr 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants