-
Notifications
You must be signed in to change notification settings - Fork 124
Open
Labels
Description
Describe the bug
I don't manage to get DevSkim custom rules to show up in the Problems Tab in VSCode. I wrote a json file containing:
To Reproduce
[{
"id": "TestRule",
"name": "Basic Test Rule",
"description": "A simple test rule.",
"applies_to": ["yaml"],
"tags": ["test"],
"patterns": [{
"pattern": "redirects",
"type": "regex",
"message": "Detected redirects."
}]
}]
When I run:
devskim analyze -I "C:\pathToTestFolder" -r "C:\pathToCustomDevSkimRules"
The output shows a match on my custom rule. However when I simply open the yaml file in VSCode nothing is shown in the Problems tab.
I also added this:
"MS-CST-E.vscode-devskim.rules.customRulesPaths": [
"C:\\pathToCustomDevSkimRules"
],
"MS-CST-E.vscode-devskim.logging.level": "debug",
Inside C:\Users\username\AppData\Roaming\VSCodium\User\settings.json. Other DevSkim rules do show up in the Problems tab.
Expected behavior
My custom rules to show up in the Problems tab in VSCode.
Versions(please complete the following information):
- OS: Windows 11
- Devskim Version: devskim 1.0.44+10b85ce690
Other
I saw #300 and my file extensions are actually yaml.
Reactions are currently unavailable