Skip to content

Exclusions don't seem to work properly in scope: raw #272

@Ravlen

Description

@Ravlen

Another minor bug, but it seems like exclusions don't work as expected for rules using scope: raw. I can add the standard exclusions for all of our rules that don't use scope: raw, but none of the rules that DO use it can't be excluded properly.

See how the first rule gives suggestions, then within the exclusion block it does not. Then the second rule (which uses scope: raw does not exclude the alert:

Screen Shot 2020-11-16 at 16 00 34

The weird thing is that if you forget to add the second line (to re-enable the rule), it then excludes the rule from the entire file, including lines BEFORE the exclusion. Non-scope: raw rules work as expected, only excluding everything after the exclusion line:

Screen Shot 2020-11-16 at 16 03 54

cc @jdkato

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions