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-1-3`: `main` functions are not correctly detected according to the standard #770

Closed lcartey closed 1 month ago

lcartey commented 1 month ago

Affected rules

Description

The detection of standard-compliant main functions is broken:

Example

int main() { // NON_COMPLIANT[FALSE_NEGATIVE]
}

int main(int argc, char * argv[]) { // COMPLIANT[FALSE_POSITIVE]
}