镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

A7-1-1: Exclude compiler generated statements for range based for loops #372

Description

@lcartey

Affected rules

  • A7-1-1
  • A0-1-1

Description

Similar to:
#309

Example

  for (const bool value : values) {
    do_stuff(value);
  }

Activity

  1. added
    Difficulty-LowA false positive or false negative report which is expected to take <1 day effort to address
    false positive/false negativeAn issue related to observed false positives or false negatives.
    user-reportIssue reported by an end user of CodeQL Coding Standards
    on Oct 2, 2023
  2. lcartey commented on Oct 25, 2023

    @lcartey
    ContributorAuthor

    As part of this work we should do a systematic analysis of the queries using QL for QL to identify queries reporting Variables as their primary location where the isCompilerGenerated is not included as a condition on the where clause.

  3. self-assigned this
    on Jan 10, 2024
  4. moved this from Scheduled to In Progress in Coding Standards Public Development Boardon Jan 23, 2024
  5. moved this from Scheduled to In Progress in Coding Standards Public Development Boardon Feb 1, 2024
  6. rvermeulen commented on Feb 1, 2024

    @rvermeulen
    Contributor

    A0-1-1 is already address by @lcartey in b8a527c.
    Cannot replicate the issue for A7-1-1, but testing on open pilot does give a meaningful difference.
    I will exclude compiler generated variables.

  7. added a commit that references this issue on Feb 1, 2024
  8. moved this from In Progress to Ready for review in Coding Standards Public Development Boardon Feb 1, 2024
  9. moved this from Ready for review to Done in Coding Standards Public Development Boardon Feb 2, 2024
  10. added a commit that references this issue on Feb 2, 2024
  11. added a commit that references this issue on Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Difficulty-LowA false positive or false negative report which is expected to take <1 day effort to addressImpact-Mediumfalse positive/false negativeAn issue related to observed false positives or false negatives.user-reportIssue reported by an end user of CodeQL Coding Standards

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions