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

### Affected rules - `A3-1-5` ### Description Exclude instantiated templates from this rule here: https://github.com/github/codeql-coding-standards/blob/main/cpp/common/src/codingstandards/cpp/Class.qll#L184 Also exclude compiler generated members. ### Example

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

### Affected rules - `A7-1-2` ### Description We should only report a variable in a template as a candidate for adding `constexpr` if all visible instantiations could use `constexpr`. ###...

Difficulty-High
Impact-Low
user-report
false positive/false negative
Standard-AUTOSAR

### Affected rules - M5-0-8 - M5-0-9 ### Description Return value of `static_cast` seems to be treated as a `cvalue` interferring with several MISRA rules: #### M-0-8 When upcasting variable...

false positive/false negative

### Affected rules - A7-1-3 ### Description For some reason, `A7-1-3` is triggered on basic varibales created from `static_cast` ### Example ```cpp void false_positive() { std::uint8_t u8{0}; auto const u32...

false positive/false negative

### Affected rules - A2-7-3 ### Description A documented [type alias](https://en.cppreference.com/w/cpp/language/type_alias) where `type-id` is a template results in a missing documentation false positive. If the rhs of the (documented) alias...

Difficulty-Medium
Impact-Low
user-report
false positive/false negative
Standard-AUTOSAR

## Description The presence of -Wno-foo should not mark the compilation compliant with A1-1-2, nor should the presence of -Wfoo=0. Easily check for all -Wfoo=bar flags, that foo is not...

## Description Add a script `validate-amendments-csv.py` that checks each rule in `amendments.csv` for the following: - "Yes"/"No" columns contain "Yes" or "No" - The rule id references an existing rule...

## Description Gcc may be compiled to auto include warnings such as -Wformat. However, passing in `-w` will suppress the enabled format warnings. The previous query would not raise an...

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

## Description Add an amendments.csv to track amendments, corregenda, etc., populated for now with MISRA-C 2012 amendments 2 & 3 and Technical Corrigendum 2. TODO: Describe amendments.csv in the documentation....