This repository has been archived by the owner on Jan 21, 2023. It is now read-only.
Releases: norech/cnormitek
Releases · norech/cnormitek
v0.3.0
- added
--cs-2020
and--cs-2021
to specify a version of the coding style in which detect faults - made F4 detection trigger at 19 lines on CS2021 and at 20 lines on CS2020
- added
--strict
and moved H3 detection to CS2020 strict - improved
.gitignore
scan by usinggit
- improved L3 detection when newlines are present
- added detection of G2 (CS2020 and CS2021)
- added detection of G1 and F3 in Makefile (CS2021)
v0.2.0
Supports the following rules:
- F2: function name should be in snake_case (major)
- F3: too many columns (major)
- F4: too long function (major)
- F5: too many arguments or missing void (major)
- G1: bad or missing header (major)
- O1: delivery folder should not contain unnecessary files (major)
- O3: too many functions in file (major)
- O4: file or folder should be named in snake_case (major)
- C2: only header files should contain macros and static inline functions (major)
- C1: probably too many conditions nested (minor)
- C3: goto is discouraged (minor)
- H2: no inclusion guard found (minor)
- H3: macros should not be used for constants and should only match one statement (minor)
- L2: bad indentation (minor)
- L3: misplaced or missing space (minor)
- V3: pointer symbol is not attached to the name (minor)
- G7: line endings must be done in UNIX style (LF) (minor)
- G8: trailing space (minor)
- G9: no more than one single trailing line must be present (minor)
- F6: no comment inside a function (minor)
- L6: one line break should be present to separate declarations from function remainder (minor)
- A3: one single trailing line must be present (info)
- whitelist and blacklist of standard functions and syscalls (info)