M7-3-6
: Refine detection of using
within function/class scope
#400
Labels
Difficulty-Low
A false positive or false negative report which is expected to take <1 day effort to address
false positive/false negative
An issue related to observed false positives or false negatives.
Impact-Medium
user-report
Issue reported by an end user of CodeQL Coding Standards
Affected rules
M7-3-6
Description
The rule states:
However, we currently permit both using declarations and using directives in function/class scope - we should refine this.
In addition, some
using
directives/declarations appear to be "orphaned" in our model - i.e. be located within a function or class, but with a fake parent which is not otherwise connected to the AST. We should exclude these to avoid false positives.Example
The text was updated successfully, but these errors were encountered: