-
Notifications
You must be signed in to change notification settings - Fork 67
Update CodeQL to 2.9.4 #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The update introduces performance issues for rules A0-1-5 and M10-2-1 |
The performance issues are now fixed. |
@mbaluda and @jketema you can view the performance impact by reviewing this PR: https://github.com/github/codeql-coding-standards-release-engineering/pull/22 Specifically, the performance improvement looks to be excellent! 🎉 Some examples:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks for all of this hard work! Note that this will not be releasable until the automation on the release engineering side is updated to dynamically pull the codeql bundle from the embedded supported_configs.json
Description
Updates CodeQL to version 2.9.4
Fixes compatibility issues in rules A7-3-1, A8-5-3, M0-1-4.
Details:
isBraced
predicate mentioned below.int
was emitted as the type forx
inauto x{1}
, and notstd::initializer_list
. To address this, anisBraced
predicate was added to theInitialization
class of the CodeQL C++ library. This PR switches A8-5-3 over to use that predicate. This also addresses a false positive that could occur, where no braced initialization was used, but where the inferred type forauto
wasstd::initializer_list
.SingleUsePODVariable.ql
, we were including compiler-generated accesses to the variable when computing the number of uses. This caused new false negatives with the latest C++ extractor, because more compiler-generated constructors, assignment operators, etc. are now present in the database. The intent of the rule is clearly to count user-written uses, so the rule has been updated to ignore compiler-generated uses.Change request type
.ql
,.qll
,.qls
or unit tests)Rules with added or modified queries
Release change checklist
A change note (development_handbook.md#change-notes) is required for any pull request which modifies:
If you are only adding new rule queries, a change note is not required.
Author: Is a change note required?
Reviewer: Confirm that either a change note is not required or the change note is required and has been added.
Query development review checklist
For PRs that add new queries or modify existing queries, the following checklist should be completed by both the author and reviewer:
Author
As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process.
Reviewer
As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process.