codeql-coding-standards icon indicating copy to clipboard operation
codeql-coding-standards copied to clipboard

This repository contains CodeQL queries and libraries which support various Coding Standards.

Results 202 codeql-coding-standards issues
Sort by recently updated
recently updated
newest added

Context: https://github.com/github/codeql-coding-standards/pull/45#discussion_r943837378 Although this query will catch a lot real-world examples of flawed usage of weak cmpxchg functions (e.g., those used in one-off if-statements), I think that if false-positives don't...

enhancement
Difficulty-High
Standard-CERT-C

### Affected rules - `A15-2-2` ### Description A15-2-2 customizes the exception flow model to represent that `new` calls may throw a `std::bad_alloc` exception. This code correctly handles the case that...

Standard-AUTOSAR

## Description This updates our documentation to state that MISRA C++ 2023 is under development, with a scheduled release date of 2024 Q4. ## Change request type - [ ]...

### Affected rules - `STR34-C` ### Description * Do not consider specifiers when considering whether a type is a `char` type - whether a type is `const`, `volatile` etc. doesn't...

Difficulty-Medium
Impact-High
false positive/false negative
Standard-CERT-C

### Affected rules - `STR34-C` ### Description This query identifies conversions from signed `char`s to larger signed integers. This is a C rule, however it is part of the collection...

Difficulty-Medium
Impact-Medium
user-report
false positive/false negative

## Description Adds support the MISRA C++:2023 coding standard: - update folder structure - update package generation scripts - update documentation Created a [test PR](https://github.com/github/codeql-coding-standards/pull/588) with a dummy implementation of...

This PR releases codeql-coding-standards version 2.29.0.

## Description fixes #20, add return expression flow for [NRVO elision](https://en.cppreference.com/w/cpp/language/copy_elision) ## Change request type - [ ] Release or process automation (GitHub workflows, internal scripts) - [ ] Internal...

There is a [--timeout option](https://docs.github.com/en/code-security/codeql-cli/codeql-cli-manual/database-analyze#--timeoutseconds) that can be passed to the "database analyze" step but it is not an effective way to limit the total amount of time the query...

enhancement

## Description _please enter the description of your change here_ ## Change request type - [ ] Release or process automation (GitHub workflows, internal scripts) - [ ] Internal documentation...