github / codeql-coding-standards

This repository contains CodeQL queries and libraries which support various Coding Standards.
MIT License
129 stars 59 forks source link

`Rule 12.2`: Unhandled `%=` in range analysis #682

Closed lcartey closed 2 months ago

lcartey commented 2 months ago

Affected rules

Description

Range analysis does not handle %=, which is sometimes used to help restrict the right hand operand for this

Example

x %= 7;
y << x;