Skip to content

Incorrect suppression ids for a number of rules #323

Closed
@lcartey

Description

@lcartey

Affected rules

  • RULE-11-4
  • DIR-4-12
  • RULE-21-6
  • RULE-21-9
  • MEM51-CPP

Description

The query for RULE-11-4 includes the following:

not isExcluded(cast, Pointers1Package::castBetweenObjectPointerAndDifferentObjectTypeQuery()) and

When it should be:

not isExcluded(cast, Pointers1Package::conversionBetweenPointerToObjectAndIntegerTypeQuery()) and
```

This means the results of this query can only currently be deviated by incorrectly supplying `RULE-11-3`.

There are multiple rules which have this problem. I have scraped the repo looking for duplicated uses of the same query predicate, and listed the affected rules above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions