Skip to content

DevSkim CLI is case-sensitive where the VSCode extension is not #283

@tomwatson1024

Description

@tomwatson1024

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions