-
Notifications
You must be signed in to change notification settings - Fork 124
Closed
Labels
Description
The Devskim CLI reports an issue that has been explicitly excluded using a Devskim: ignore comment. The VSCode extension works as expected, that is, not reporting the suppressed issue.
$ cat main.c
#include <stdio.h>
#include <string.h>
int main()
{
char src[40];
char dest[100];
char dest2[100];
gets(src); // Devskim: ignore DS181021
}
$ devskim analyze main.c
main.c:10:3:10:12 [Important] DS181021 Banned C function detected (gets)
$ devskim --version
Microsoft DevSkim Command Line Interface
0.4.221+17272b4af9
VSCode shows no squiggles. Removing the exclusion comment causes VSCode to show the expected squiggle.
Possibly related to #70 - I've tested the snippet there with the same results as detailed in that issue.
It's also possible I'm missing something obvious here, in which case my apologies in advance.
Reactions are currently unavailable