Skip to content

Suppressing warning from config #20633

@bit-envoy

Description

@bit-envoy

I have question about suppressing warning from config. I have created config:

name: "CodeQL CPP config"

packs:
  - microsoft/windows-drivers
  
query-filters:
  - exclude:
      id:
        - cpp/drivers/irql-function-not-annotated

I am running commands:

.\codeql database create .\MyDriver --language=c --source-root="C:\Users\nidanachain\source\repos\MyDriver1" --command="C:\Users\nidanachain\source\repos\MyDriver1\MyDriver1\Build.bat" --overwrite --codescanning-config="C:\codeql\config.yml"
.\codeql database analyze .\MyDriver --format=sarifv2.1.0 --output=DriverAnalysis.json

And cpp/drivers/irql-function-not-annotated is not suppressed. Why is that? What should I do to suppress globally warning cpp/drivers/irql-function-not-annotated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-responseThe CodeQL team is awaiting further input or clarification from the original reporter of this issue.questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions