AI Slop Code Risk Monitor

cppcheck-opensource/cppcheck

SlopCodeMonitor badge for cppcheck-opensource/cppcheck Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

static analysis of C/C++ code

1.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for cppcheck-opensource/cppcheck, a C++ project with 6,790 GitHub stars. SynthScan examined 624,574 lines of code across 1305 source files, recording 977 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 1.7 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

1.7
Adjusted Signal
1.7
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
6.8K
Stars
C++
Language
624.6K
Lines of Code
1.3K
Files
977
Pattern Hits
2026-10-31
Scan Date
0.02
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 6.5/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 887 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.4/100 · LOW

Are imports declared and package/API names verified? 15 finding(s).

Agent Over-Engineering Ratio 4.0/100 · LOW

Are wrappers, guards, and repeated structures necessary? 441 finding(s).

PR Review Velocity Impact 9.2/100 · LOW

Which changes need focused human review? 977 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 29MEDIUM 43LOW 905

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 977 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block346 hits · 346 pts
SeverityFileLineSnippetContext
LOW.uncrustify.cfg101# 'catch' are on the same line, as in 'catch (decl) <here> {'.COMMENT
LOW.uncrustify.cfg121# Whether to indent the body of a 'namespace'.COMMENT
LOW.uncrustify.cfg141# Whether to collapse empty blocks between '{' and '}' for functions only.COMMENT
LOW.uncrustify.cfg161# The value might be used twice:COMMENT
LOWdemoclient/democlient.cpp21#include "errortypes.h"COMMENT
LOWtools/daca2-getpackages.py61 #-rw-r--r-- 2 dak debadmin 56730 Dec 26 2016 0xffff_0.7-2_armel.debCOMMENT
LOWtools/release-check-premium-ids.py1#!/usr/bin/env python3COMMENT
LOWtools/tweak-compile-commands.py1#!/usr/bin/env python3COMMENT
LOWtools/tweak-compile-commands.py21# --isystem-to-i --exclude-folder lib1:COMMENT
LOWtools/donate-cpu.py1#!/usr/bin/env python3COMMENT
LOWtools/donate-cpu.py21#COMMENT
LOWtools/matchcompiler.py1#!/usr/bin/env python3COMMENT
LOWtools/test-my-pr.py61 #-rw-r--r-- 2 dak debadmin 60254 Dec 26 2016 0xffff_0.7-2_i386.debCOMMENT
LOWtools/dmake/dmake.cpp21#include <algorithm>COMMENT
LOWtools/triage/mainwindow.cpp21#include "codeeditor.h"COMMENT
LOWtools/triage/mainwindow.cpp41#include <QFileInfo>COMMENT
LOWtest/helpers.cpp21#include "filelister.h"COMMENT
LOWtest/testnullpointer.cpp21#include "ctu.h"COMMENT
LOWtest/testthreadexecutor.cpp21COMMENT
LOWtest/testvalueflow.cpp21#include "helpers.h"COMMENT
LOWtest/testclangimport.cpp1// Cppcheck - A tool for static C/C++ code analysisCOMMENT
LOWtest/testclangimport.cpp21#include "settings.h"COMMENT
LOWtest/redirect.h1// Cppcheck - A tool for static C/C++ code analysisCOMMENT
LOWtest/testimportproject.cpp21#include "helpers.h"COMMENT
LOWtest/testimportproject.cpp861 // a shorter version as simply less than a longer one, not equal to itCOMMENT
LOWtest/testimportproject.cpp1081 // operators <, >, <=, >=. Real MSBuild documents <, >, <=, >= as usableCOMMENT
LOWtest/testimportproject.cpp1101 // MSBuildVersion's own zero-padded equality (used byCOMMENT
LOWtest/testimportproject.cpp1121 // path should affect the case where both sides are literally theCOMMENT
LOWtest/testimportproject.cpp1141 // Regression coverage for property-name identifier parsing rejecting '-'.COMMENT
LOWtest/testimportproject.cpp1161 // NOT consumed as part of the method name.COMMENT
LOWtest/testimportproject.cpp1181 cppcheck::testing::expandMSBuildExpression("prefix-$(CppcheckTest-Hyphen-Prop)-suffix"));COMMENT
LOWtest/testimportproject.cpp1241 ASSERT_EQUALS("/a/b/c", cppcheck::testing::expandMSBuildExpression("$([MSBuild]::NormalizePath ('/a', 'b', 'cCOMMENT
LOWtest/testimportproject.cpp1441 return fs.filename().find("main.cpp") != std::string::npos;COMMENT
LOWtest/testimportproject.cpp1461 // "Current" <= "18.0" -> {18,0} <= {18,0} -> trueCOMMENT
LOWtest/testimportproject.cpp1481 // the plain, case-sensitive findAndReplace() instead ofCOMMENT
LOWtest/testsingleexecutor.cpp21#include "fixture.h"COMMENT
LOWtest/testpreprocessor.cpp21// the code for a known configuration, it generates the code for each configuration.COMMENT
LOWtest/testtokenize.cpp21#include "helpers.h"COMMENT
LOWtest/fixture.h21#define fixtureHCOMMENT
LOWtest/fixture.h321#define ASSERT_LOC_MSG( CONDITION, MSG, FILE_, LINE_ ) assert_(FILE_, LINE_, (CONDITION), MSG)COMMENT
LOWtest/fixture.h341COMMENT
LOWtest/testsymboldatabase.cpp21#include "helpers.h"COMMENT
LOWtest/testcmdlineparser.cpp21#include "cmdlineparser.h"COMMENT
LOWtest/options.cpp1// Cppcheck - A tool for static C/C++ code analysisCOMMENT
LOWtest/fixture.cpp21#include "errortypes.h"COMMENT
LOWtest/testtokenlist.cpp21#include "helpers.h"COMMENT
LOWtest/options.h1// Cppcheck - A tool for static C/C++ code analysisCOMMENT
LOWtest/testexecutor.cpp21#include "errortypes.h"COMMENT
LOWtest/precompiled.h21// IWYU pragma: begin_keepCOMMENT
LOWtest/testcppcheck.cpp21#include "color.h"COMMENT
LOWtest/testlibrary.cpp21#include "helpers.h"COMMENT
LOWtest/testprocessexecutor.cpp21COMMENT
LOWtest/testsimplifytemplate.cpp21#include "helpers.h"COMMENT
LOWtest/helpers.h21COMMENT
LOWtest/testsuppressions.cpp21#include "cppcheck.h"COMMENT
LOWtest/tools/donate_cpu_lib_test.py1#!/usr/bin/env pythonCOMMENT
LOWtest/tools/test_matchcompiler.py1#!/usr/bin/env python3COMMENT
LOWtest/cli/vcxproj_split_configs_test.py1COMMENT
LOWtest/cli/vcxproj_item_macro_path_missing_config_test.py1COMMENT
LOWtest/cli/props_dirs_test.py1COMMENT
286 more matches not shown…
Hyper-Verbose Identifiers366 hits · 311 pts
SeverityFileLineSnippetContext
LOWtools/release-check-premium-ids.py59def get_is_premium_enabled_ids():CODE
LOWtools/donate_cpu_lib.py122def checkout_cppcheck_version(repo_path, version, cppcheck_path):CODE
LOWtools/donate-cpu-server.py61def handle_uncaught_exception(exc_type, exc_value, exc_traceback):CODE
LOWtools/donate-cpu-server.py456def generate_package_diff_statistics(filename: str) -> None:CODE
LOWtools/donate-cpu-server.py1010def check_library_function_name(result_path: str, function_name: str, query_params: dict, nonfunc_id: str='') -> str:CODE
LOWtest/tools/donate_cpu_server_test.py35def test_file_outside_result_path(tmp_path):CODE
LOWtest/cli/vcxproj_split_configs_test.py32def test_vcxproj_split_configs():CODE
LOWtest/cli/vcxproj_item_macro_path_missing_config_test.py33def test_vcxproj_item_macro_path_missing_config():CODE
LOWtest/cli/props_dirs_test.py49def test_props_dirs_defines_and_standard():CODE
LOWtest/cli/project-suppressions.py6def test_cli_and_project_suppressions(tmp_path):CODE
LOWtest/cli/project-suppressions.py20def test_multiple_cli_and_project_suppressions(tmp_path):CODE
LOWtest/cli/suppress-syntaxError_test.py20def test_safety_suppress_syntax_error_implicitly(tmpdir):CODE
LOWtest/cli/suppress-syntaxError_test.py27def test_safety_suppress_syntax_error_explicitly():CODE
LOWtest/cli/lookup_test.py117def test_lib_lookup_notfound_project(tmpdir): # #13938CODE
LOWtest/cli/lookup_test.py137def test_lib_lookup_notfound_compdb(tmpdir):CODE
LOWtest/cli/lookup_test.py156def test_lib_lookup_ext_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py176def test_lib_lookup_relative_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py196def test_lib_lookup_relative_noext_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py217def test_lib_lookup_relative_noext_trailing_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py393def test_platform_lookup_builtin(tmpdir):CODE
LOWtest/cli/lookup_test.py447def test_platform_lookup_path(tmpdir):CODE
LOWtest/cli/lookup_test.py477def test_platform_lookup_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py502def test_platform_lookup_notfound_project(tmpdir): # #13939CODE
LOWtest/cli/lookup_test.py528def test_platform_lookup_notfound_compdb(tmpdir):CODE
LOWtest/cli/lookup_test.py549def test_platform_lookup_ext_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py572def test_platform_lookup_relative_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py595def test_platform_lookup_relative_noext_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py619def test_platform_lookup_relative_noext_trailing_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py642def test_platform_lookup_absolute(tmpdir):CODE
LOWtest/cli/lookup_test.py802def test_addon_lookup_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py822def test_addon_lookup_notfound_project(tmpdir): # #13940 / #13941CODE
LOWtest/cli/lookup_test.py841def test_addon_lookup_notfound_compdb(tmpdir):CODE
LOWtest/cli/lookup_test.py859def test_addon_lookup_ext_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py879def test_addon_lookup_relative_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py900def test_addon_lookup_relative_noext_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py921def test_addon_lookup_relative_noext_trailing_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py942def test_addon_lookup_absolute(tmpdir):CODE
LOWtest/cli/lookup_test.py960def test_addon_lookup_absolute_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py977def test_addon_lookup_absolute_noext_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py995def test_addon_lookup_absolute_noext_trailing_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py1040def test_addon_lookup_invalid(tmpdir):CODE
LOWtest/cli/lookup_test.py1086def test_config_lookup_notfound(tmpdir):CODE
LOWtest/cli/lookup_test.py262def test_lib_lookup_absolute_notfound(tmpdir):STRING
LOWtest/cli/lookup_test.py282def test_lib_lookup_absolute_noext_notfound(tmpdir):STRING
LOWtest/cli/lookup_test.py303def test_lib_lookup_absolute_noext_trailing_notfound(tmpdir):STRING
LOWtest/cli/lookup_test.py663def test_platform_lookup_absolute_notfound(tmpdir):STRING
LOWtest/cli/lookup_test.py680def test_platform_lookup_absolute_noext_notfound(tmpdir):STRING
LOWtest/cli/lookup_test.py698def test_platform_lookup_absolute_noext_trailing_notfound(tmpdir):STRING
LOWtest/cli/lookup_test.py717def test_platform_lookup_nofile(tmpdir):STRING
LOWtest/cli/lookup_test.py740def test_platform_lookup_invalid(tmpdir):STRING
LOWtest/cli/vcxproj_item_macro_path_invariant_test.py32def test_vcxproj_item_macro_path_invariant():CODE
LOWtest/cli/vcxproj_forced_includes_test.py14def test_vcxproj_forced_includes_debug():CODE
LOWtest/cli/vcxproj_forced_includes_test.py38def test_vcxproj_forced_includes_release():CODE
LOWtest/cli/vcxproj_item_macro_path_test.py48def test_vcxproj_item_macro_path():CODE
LOW⚡test/cli/unused_function_test.py74def test_unused_functions_builddir(tmpdir):CODE
LOW⚡test/cli/unused_function_test.py80def test_unused_functions_builddir_j_thread(tmpdir):CODE
LOW⚡test/cli/unused_function_test.py87def test_unused_functions_builddir_j_process(tmpdir):CODE
LOW⚡test/cli/unused_function_test.py93def __test_unused_functions_project(extra_args):CODE
LOWtest/cli/unused_function_test.py111def test_unused_functions_project():CODE
LOWtest/cli/unused_function_test.py115def test_unused_functions_project_j():CODE
306 more matches not shown…
Deep Nesting134 hits · 100 pts
SeverityFileLineSnippetContext
LOWtools/daca2-getpackages.py42CODE
LOWtools/release-set-version.py43CODE
LOWtools/reduce.py144CODE
LOWtools/reduce.py205CODE
LOWtools/donate_cpu_lib.py347CODE
LOWtools/donate_cpu_lib.py439CODE
LOWtools/donate_cpu_lib.py581CODE
LOWtools/donate_cpu_lib.py737CODE
LOWtools/MT-Unsafe.py51CODE
LOWtools/matchcompiler.py198CODE
LOWtools/matchcompiler.py305CODE
LOWtools/matchcompiler.py350CODE
LOWtools/matchcompiler.py455CODE
LOWtools/test-my-pr.py42CODE
LOWtools/donate-cpu-server.py164CODE
LOWtools/donate-cpu-server.py204CODE
LOWtools/donate-cpu-server.py308CODE
LOWtools/donate-cpu-server.py420CODE
LOWtools/donate-cpu-server.py495CODE
LOWtools/donate-cpu-server.py525CODE
LOWtools/donate-cpu-server.py591CODE
LOWtools/donate-cpu-server.py662CODE
LOWtools/donate-cpu-server.py707CODE
LOWtools/donate-cpu-server.py748CODE
LOWtools/donate-cpu-server.py858CODE
LOWtools/donate-cpu-server.py921CODE
LOWtools/donate-cpu-server.py1010CODE
LOWtools/donate-cpu-server.py1068CODE
LOWtools/donate-cpu-server.py1297CODE
LOWtools/donate-cpu-server.py1336CODE
LOWtools/donate-cpu-server.py1178CODE
LOWtools/release-trac-fixed-open-tickets.py104CODE
LOWtools/daca2-download.py41CODE
LOWtools/daca2-download.py80CODE
LOWtools/daca2-download.py125CODE
LOWtest/cli/lookup_test.py1134CODE
LOWtest/cli/testutils.py94CODE
LOWtest/cli/testutils.py168CODE
LOWtest/cli/sarif_test.py302CODE
LOWtest/scripts/extracttests.py82CODE
LOWaddons/namingng.py199CODE
LOWaddons/misc.py48CODE
LOWaddons/misc.py87CODE
LOWaddons/misra_9.py396CODE
LOWaddons/misra_9.py488CODE
LOWaddons/misra_9.py525CODE
LOWaddons/misra_9.py222CODE
LOWaddons/misra_9.py367CODE
LOWaddons/y2038.py214CODE
LOWaddons/y2038.py302CODE
LOWaddons/cppcheckdata.py1461CODE
LOWaddons/cppcheckdata.py1566CODE
LOWaddons/cppcheckdata.py362CODE
LOWaddons/cppcheckdata.py880CODE
LOWaddons/cppcheckdata.py1229CODE
LOWaddons/cppcheckdata.py1284CODE
LOWaddons/threadsafety.py290CODE
LOWaddons/misra.py87CODE
LOWaddons/misra.py569CODE
LOWaddons/misra.py620CODE
74 more matches not shown…
Empty Error Handlers19 hits · 95 pts
SeverityFileLineSnippetContext
HIGHtools/donate_cpu_lib.py427except subprocess.TimeoutExpired:CODE
HIGHtools/donate_cpu_lib.py745except IOError:CODE
HIGHtools/donate_cpu_lib.py395except OSError:CODE
HIGHtools/donate_cpu_lib.py397except AttributeError:CODE
HIGHtest/cli/testutils.py153except subprocess.TimeoutExpired:CODE
HIGHaddons/y2038.py293except (AttributeError, TypeError, ValueError):CODE
HIGHaddons/misra.py30except ImportError:CODE
HIGHaddons/misra.py2611except ValueError:CODE
HIGHaddons/misra.py2672except ValueError:CODE
HIGHaddons/test/util.py44except ValueError:CODE
HIGHgui/manualtest/run.py52except (ImportError, OSError):CODE
HIGHgui/manualtest/web.py459except KeyboardInterrupt:CODE
HIGHgui/manualtest/guitest.py181except ProcessLookupError:CODE
HIGHgui/manualtest/guitest.py310except Exception:CODE
HIGHgui/manualtest/guitest.py320except Exception:CODE
HIGHgui/manualtest/guitest.py465except Exception:CODE
HIGHgui/manualtest/guitest.py709except OSError:CODE
HIGHgui/manualtest/guitest.py247except Exception:CODE
HIGHgui/manualtest/guitest.py207except (ProcessLookupError, PermissionError):CODE
Excessive Try-Catch Wrapping46 hits · 73 pts
SeverityFileLineSnippetContext
LOWtools/release-set-version.py26 except Exception:CODE
MEDIUMtools/release-set-version.py23def egrep(args):CODE
MEDIUMtools/reduce.py87 print('Error: {}\n{}'.format(stdout, stderr))CODE
MEDIUM⚡tools/donate_cpu_lib.py647 print('Error: Result upload not performed - only make build binaries are currently fully supported')CODE
MEDIUM⚡tools/donate_cpu_lib.py662 print('Error: Information upload not performed - only make build binaries are currently fully supported')CODE
MEDIUMtools/donate_cpu_lib.py47 print("Error: a make command ({}) is required".format(','.join(make_cmds)))CODE
MEDIUMtools/donate_cpu_lib.py69 print("Error: '{}' is required".format(app))CODE
MEDIUMtools/donate_cpu_lib.py76 print("Error: {}. Module is required.".format(e))CODE
MEDIUMtools/donate_cpu_lib.py324 print('Error: ' + destfile + ' exists but it is not a file! Please check the path and delete it manually.')CODE
MEDIUMtools/donate_cpu_lib.py158def get_cppcheck_info(cppcheck_path):CODE
LOW⚡tools/donate_cpu_lib.py653 except Exception as e:CODE
LOW⚡tools/donate_cpu_lib.py668 except Exception as e:CODE
LOW⚡tools/donate_cpu_lib.py678 except Exception as e:CODE
LOWtools/donate_cpu_lib.py230 except Exception as e:CODE
LOWtools/donate_cpu_lib.py239 except Exception as e:CODE
LOWtools/donate_cpu_lib.py314 except Exception as e:CODE
MEDIUMtools/donate-cpu.py95 print('Error: Max. packages value "{}" is invalid. Must be a positive number or 0.'.format(arg_value))CODE
MEDIUMtools/donate-cpu.py141 print('Error: Bandwidth limit value "' + bandwidth_limit + '" is invalid.')CODE
LOWtools/donate-cpu.py160except Exception as e:CODE
MEDIUMtools/donate-cpu.py161 print('Error: Failed to clone Cppcheck ({}), retry later'.format(e))CODE
LOWtools/donate-cpu.py178 except Exception as e:CODE
LOWtools/donate-cpu.py194 except Exception as e:CODE
LOWtools/donate-cpu.py210 except Exception as e:CODE
MEDIUMtools/donate-cpu.py211 print('Error: Failed to get package ({}), retry later'.format(e))CODE
MEDIUMtools/test-my-pr.py154 print("Error: Check requirements")CODE
LOWtools/test-my-pr.py177 except Exception as e:CODE
LOWtools/test-my-pr.py183 except Exception as e:CODE
MEDIUMtools/test-my-pr.py200 print('Error: {}'.format(e))CODE
MEDIUMtools/test-my-pr.py250 print('Error: 101')CODE
MEDIUMtools/test-my-pr.py263 print('Error: 101')CODE
MEDIUMtools/test-my-pr.py27def ftp_get(url):CODE
MEDIUMtools/compare-valueflow-options.py63 print("Error: Check requirements")CODE
LOWtools/compare-valueflow-options.py90 except Exception as e:CODE
MEDIUMtools/release-trac-fixed-open-tickets.py52 print('Error: no tags found', file=sys.stderr)CODE
LOWtools/bisect/bisect_hang.py47except Exception as e:CODE
LOWtools/bisect/bisect_res.py43except Exception as e:CODE
LOWaddons/namingng.py86 except Exception as e:CODE
MEDIUMaddons/naming.py19 print('Error: "{}" is not a valid regular expression.'.format(expr))CODE
MEDIUMaddons/misra.py5109 print("Error: Please specify rule texts file with --rule-texts=<file>")STRING
LOWgui/manualtest/guitest.py247 except Exception:CODE
LOWgui/manualtest/guitest.py281 except Exception:CODE
LOW⚡gui/manualtest/guitest.py310 except Exception:CODE
LOW⚡gui/manualtest/guitest.py320 except Exception:CODE
LOW⚡gui/manualtest/guitest.py330 except Exception:CODE
LOWgui/manualtest/guitest.py465 except Exception:CODE
MEDIUMgui/manualtest/guitest.py40def load_state():CODE
Cross-Language Confusion9 hits · 48 pts
SeverityFileLineSnippetContext
HIGHtools/matchcompiler.py176 return '(tok->tokType() == Token::eBitOp && tok->str() == MatchCompiler::makeConstString("|") )'CODE
HIGHtools/matchcompiler.py178 return '(tok->tokType() == Token::eLogicalOp && tok->str() == MatchCompiler::makeConstString("||"))'CODE
HIGHtools/matchcompiler.py231 ret += ' if (!tok || tok->str().size() != 1U || !strchr("' + tok[1:-1] + '", tok->str()[0]))\n'CODE
HIGHtools/matchcompiler.py260 ret += ' if (tok && tok->str() == MatchCompiler::makeConstString("' + tok[2:] + '"))\n'CODE
HIGHtest/cli/other_test.py738 "_comment1": "these should all be arrays, or null, or not set",CODE
HIGHtest/addon/conftest.py111 if (flag && limit > 1) {CODE
HIGHtest/addon/conftest.py134 int log_or = a || b;CODE
HIGHtest/addon/conftest.py155 return less && v.empty();CODE
HIGHaddons/namingng.py16# "RE_PRIVATE_MEMBER_VARIABLE": null,COMMENT
Decorative Section Separators10 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUM⚡addons/y2038.py43# --------------------------------COMMENT
MEDIUM⚡addons/y2038.py45# --------------------------------COMMENT
MEDIUM⚡addons/y2038.py51# --------------------------------------------COMMENT
MEDIUM⚡addons/y2038.py53# --------------------------------------------COMMENT
MEDIUMaddons/y2038.py79# --------------------------------------------COMMENT
MEDIUMaddons/y2038.py81# --------------------------------------------COMMENT
MEDIUMaddons/y2038.py98# --------------------------------COMMENT
MEDIUMaddons/y2038.py100# --------------------------------COMMENT
MEDIUMaddons/threadsafety.py17# --------------------------------COMMENT
MEDIUMaddons/threadsafety.py19# --------------------------------COMMENT
Self-Referential Comments5 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMtools/dmake/dmake.cpp366 fout << "# This file is generated by dmake, do not edit.\n";CODE
MEDIUMtools/dmake/dmake.cpp619 fout << "# This file is generated by dmake, do not edit.\n\n";CODE
MEDIUM⚡test/cli/performance_test.py453 # Create a main file that includes a header and returns 0.COMMENT
MEDIUM⚡test/cli/performance_test.py461 # Create a header file with macro definitions that violates misra because they start with an underscore.COMMENT
MEDIUM⚡test/cli/performance_test.py471 # Create a suppressions file that suppresses the misra violation for the macros in the header fileCOMMENT
Example Usage Blocks8 hits · 12 pts
SeverityFileLineSnippetContext
LOWtools/daca2-getpackages.py5# Usage:COMMENT
LOWtools/release-check-premium-ids.py25# Usage:COMMENT
LOWtools/release-set-version.py5# Usage:COMMENT
LOWtools/compare_ast_symdb.py1# Example usage:COMMENT
LOWtools/tweak-compile-commands.py32# Usage:COMMENT
LOWtools/compare-valueflow-options.py4# Example usage:COMMENT
LOWtools/daca2-download.py5# Usage:COMMENT
LOWaddons/y2038.py29# Example usage:COMMENT
Redundant / Tautological Comments7 hits · 10 pts
SeverityFileLineSnippetContext
LOWtools/reduce.py86 # Print the output to give a hint how to fix it.COMMENT
LOWtools/matchcompiler.py775 # Check if we are invoked from the right placeCOMMENT
LOWtest/cli/sarif_test.py543 # Check if rule has CWE tagCOMMENT
LOWaddons/misra_9.py327 # Check if token is correct value type for self.root.children[?]COMMENT
LOWaddons/misra_9.py406 # Check if declaration and initialization isCOMMENT
LOWaddons/cppcheckdata.py42 # Open the file here so it is closed even when the caller stops iteratingCOMMENT
LOWaddons/misra.py2165 # Check if we have the same number of variables in both theCOMMENT
AI Slop Vocabulary4 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMtest/cli/sarif_test.py459 """Test that a variety of rules are triggered by comprehensive test code."""STRING
MEDIUMtest/cli/sarif_test.py619 # Should have multiple severity levels for comprehensive testCOMMENT
MEDIUMaddons/y2038.py5# This addon provides comprehensive Y2038 (Year 2038 Problem) detection for C/C++ code.COMMENT
MEDIUMaddons/test/y2038_test.py182 # Test comprehensive Y2038 configurationCOMMENT
TODO Padding7 hits · 10 pts
SeverityFileLineSnippetContext
LOWtools/bisect/bisect_hang.py54 # TODO: handle error resultCOMMENT
LOWtools/bisect/bisect_hang.py66 # TODO: handle error resultCOMMENT
LOWcli/stacktrace.cpp64 // TODO: implement parsing for __APPLE__COMMENT
LOWcli/cmdlineparser.cpp900 // TODO: implement get CPU logical core count and use that.COMMENT
LOWlib/tokenize.cpp8807 (Token::Match(tok, "%str% %name% %str%") && !(startsWith(tok->strAt(1), "PRI") || startsWith(tok->strAt(1), CODE
LOWlib/platform.cpp469 // TODO: implementCOMMENT
LOWlib/valueflow.cpp7013 const Token* typeTok = newTok->astParent()->astOperand1(); // TODO: implement fallback for e.g. "auto p = neCODE
Structural Annotation Overuse4 hits · 6 pts
SeverityFileLineSnippetContext
LOWman/manual-premium.md1574#### Step 1: check `premiumaddon` debug outputCOMMENT
LOWman/manual-premium.md1589#### Step 2: clean up Cppcheck build dirCOMMENT
LOWman/manual-premium.md1598#### Step 3: remove `cppcheck-premium-loc` filesCOMMENT
LOWlib/importproject.cpp5266 // Step 3: Fall back to checking the Project Root Folder only if no include paths matchedCOMMENT
Unused Imports6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtools/listErrorsWithoutCWE.py2CODE
LOWtools/bisect/bisect_hang.py5CODE
LOWtools/bisect/bisect_res.py4CODE
LOWtest/tools/donate_cpu_lib_test.py19CODE
LOWaddons/y2038.py34CODE
LOWaddons/misra.py16CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHaddons/y2038.py303 Main function to check Y2038 safety of C/C++ code from cppcheck dump files. This function performs comprehensiSTRING
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMman/buildman.sh4# For Windows you can use the MiKTeX installer https://miktex.org/downloadCOMMENT
LOWlib/checkmemoryleak.h120 return "Don't forget to deallocate struct members\n";CODE
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtest/addon/test_cppcheckdata.py206 def test_function(self, sample_cfg):CODE
LOWaddons/namingng.py377def process_data(conf,data,cli,debugprint):CODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWlib/importproject.cpp5266 // Step 3: Fall back to checking the Project Root Folder only if no include paths matchedCOMMENT