Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

LanguageRuleIgnoreMap rule suppressions for powershell is broken #664

Closed
bzhu94 opened this issue Dec 5, 2024 · 0 comments · Fixed by #665
Closed

LanguageRuleIgnoreMap rule suppressions for powershell is broken #664

bzhu94 opened this issue Dec 5, 2024 · 0 comments · Fixed by #665
Labels

Comments

@bzhu94
Copy link

bzhu94 commented Dec 5, 2024

Describe the bug
Using the --options-json to exclude rules for Powershell via something like this doesn't work: "LanguageRuleIgnoreMap": {"Powershell": ["DS104456","DS440001","DS440020"]}. I've tried using powershell, PowerShell, ps1, etc but the rules don't get suppressed when running DevSkim.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Powershell script that will flag a DevSkim rule.
  2. Create a json file { "LanguageRuleIgnoreMap": {"powershell": ["DS-Rule-To-Suppress"] } }
  3. Run DevSkim analyze with --options-json path-to-json-file
  4. DevSkim analyze fails to suppress the DevSkim rule

Expected behavior
DevSkim analyze should suppress the DevSkim rule set in LanguageRuleIgnoreMap

Screenshots
N/A

Versions(please complete the following information):

  • OS: Windows 11
  • Devskim Version 1.0.44+10b85ce690

Additional context
Add any other context about the problem here.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant