cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.
This report summarizes scanner evidence for AlDanial/cloc, a Perl project with 23,588 GitHub stars. SynthScan examined 32,529 lines of code across 691 source files, recording 107 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 6.5 (Moderate 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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 71 finding(s).
Are imports declared and package/API names verified? 7 finding(s).
Are wrappers, guards, and repeated structures necessary? 33 finding(s).
Which changes need focused human review? 107 finding(s).
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.
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.
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.
The scanner identified 107 distinct pattern matches across 11 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/inputs/utilities.R | 286 | ## Create the interaction terms for nested effects | COMMENT |
| MEDIUM | tests/inputs/nomad_job.hcl | 33 | # Create an individual task (unit of work). This particular | COMMENT |
| MEDIUM⚡ | tests/inputs/issues/906/previous_version.py | 267 | # Create a partial function with 'project' as a fixed argument | COMMENT |
| MEDIUM⚡ | tests/inputs/issues/906/previous_version.py | 273 | # Create a ThreadPoolExecutor with the specified number of threads | COMMENT |
| MEDIUM | tests/inputs/issues/906/previous_version.py | 90 | # Create a metadata object | COMMENT |
| MEDIUM | tests/inputs/issues/906/previous_version.py | 93 | # Define the tbl_orcode_extension_mapping table | COMMENT |
| MEDIUM | tests/inputs/issues/906/previous_version.py | 114 | # Create a connection | COMMENT |
| MEDIUM⚡ | tests/inputs/issues/906/current_version.py | 267 | # Create a partial function with 'project' as a fixed argument | COMMENT |
| MEDIUM⚡ | tests/inputs/issues/906/current_version.py | 273 | # Create a ThreadPoolExecutor with the specified number of threads | COMMENT |
| MEDIUM | tests/inputs/issues/906/current_version.py | 90 | # Create a metadata object | COMMENT |
| MEDIUM | tests/inputs/issues/906/current_version.py | 93 | # Define the tbl_orcode_extension_mapping table | COMMENT |
| MEDIUM | tests/inputs/issues/906/current_version.py | 114 | # Create a connection | COMMENT |
| MEDIUM | tests/inputs/issues/606/in/nomad_job.hcl | 33 | # Create an individual task (unit of work). This particular | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/inputs/issues/906/previous_version.py | 333 | # print(f"An error occurred for branch {branch_name}: {e}") | COMMENT |
| MEDIUM⚡ | tests/inputs/issues/906/previous_version.py | 283 | print(f"An error occurred: {e}") | CODE |
| MEDIUM | tests/inputs/issues/906/previous_version.py | 172 | print(f"An error occurred for project {git_project_id}: {e}") | CODE |
| MEDIUM | tests/inputs/issues/906/previous_version.py | 80 | def mapTechExtensions(engine,or_code,logger): | CODE |
| MEDIUM | tests/inputs/issues/906/previous_version.py | 296 | def wrapper_function(branch_name, project): | CODE |
| LOW⚡ | tests/inputs/issues/906/previous_version.py | 256 | except Exception as e: | CODE |
| LOW⚡ | tests/inputs/issues/906/previous_version.py | 281 | except Exception as e: | CODE |
| LOW⚡ | tests/inputs/issues/906/previous_version.py | 331 | except Exception as e: | CODE |
| LOW⚡ | tests/inputs/issues/906/previous_version.py | 342 | except Exception as ex: | CODE |
| LOW | tests/inputs/issues/906/previous_version.py | 119 | except Exception as e: | CODE |
| LOW | tests/inputs/issues/906/previous_version.py | 171 | except Exception as e: | CODE |
| LOW | tests/inputs/issues/906/previous_version.py | 364 | except Exception as ex: | CODE |
| LOW | tests/inputs/issues/906/previous_version.py | 377 | except Exception as ex: | CODE |
| MEDIUM⚡ | tests/inputs/issues/906/current_version.py | 333 | # print(f"An error occurred for branch {branch_name}: {e}") | COMMENT |
| MEDIUM⚡ | tests/inputs/issues/906/current_version.py | 283 | print(f"An error occurred: {e}") | CODE |
| MEDIUM | tests/inputs/issues/906/current_version.py | 172 | print(f"An error occurred for project {git_project_id}: {e}") | CODE |
| MEDIUM | tests/inputs/issues/906/current_version.py | 80 | def mapTechExtensions(engine,or_code,logger): | CODE |
| MEDIUM | tests/inputs/issues/906/current_version.py | 296 | def wrapper_function(branch_name, project): | CODE |
| LOW⚡ | tests/inputs/issues/906/current_version.py | 256 | except Exception as e: | CODE |
| LOW⚡ | tests/inputs/issues/906/current_version.py | 281 | except Exception as e: | CODE |
| LOW⚡ | tests/inputs/issues/906/current_version.py | 331 | except Exception as e: | CODE |
| LOW⚡ | tests/inputs/issues/906/current_version.py | 342 | except Exception as ex: | CODE |
| LOW | tests/inputs/issues/906/current_version.py | 119 | except Exception as e: | CODE |
| LOW | tests/inputs/issues/906/current_version.py | 171 | except Exception as e: | CODE |
| LOW | tests/inputs/issues/906/current_version.py | 364 | except Exception as ex: | CODE |
| LOW | tests/inputs/issues/906/current_version.py | 377 | except Exception as ex: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/inputs/Application_Data_Test.feature.cs | 1 | // ------------------------------------------------------------------------------ | COMMENT |
| LOW | tests/inputs/csharp-designer.designer.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | tests/inputs/tour.swift | 1 | // https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTo | COMMENT |
| LOW | tests/inputs/utilities.R | 1 | # from https://github.com/lme4/lme4 | COMMENT |
| LOW | tests/inputs/utilities.R | 141 | fl <- do.call(data.frame, c(fl, check.names = FALSE)) | COMMENT |
| LOW | tests/inputs/utilities.R | 241 | COMMENT | |
| LOW | tests/inputs/utilities.R | 261 | ##' ## => list of length 2: list ( 1 | cask:batch , 1 | batch) | COMMENT |
| LOW | tests/inputs/utilities.R | 321 | ##' expand terms with the double vertical bar operator | COMMENT |
| LOW | tests/inputs/utilities.R | 361 | COMMENT | |
| LOW | tests/inputs/utilities.R | 401 | ##' model.frame function. | COMMENT |
| LOW | tests/inputs/utilities.R | 661 | ## (2) otherwise, if formula has an environment, use it | COMMENT |
| LOW | tests/inputs/utilities.R | 741 | ## } | COMMENT |
| LOW | tests/inputs/utilities.R | 761 | ##' Not exported. | COMMENT |
| LOW | tests/inputs/messages.rb | 1 | #!/usr/local/bin/ruby | COMMENT |
| LOW | tests/inputs/messages.rb | 21 | # along with this program; if not, write to the Free Software | COMMENT |
| LOW | tests/inputs/hello_app_autogen.go | 1 | // Code generated by manual copy DO NOT EDIT. | COMMENT |
| LOW | tests/inputs/TypeScript.ts | 1 | // | COMMENT |
| LOW | tests/inputs/hello_app.go | 1 | // https://raw.githubusercontent.com/golang/example/master/appengine-hello/app.go | COMMENT |
| LOW | tests/inputs/locale_facets.h | 1 | // Locale support -*- C++ -*- | COMMENT |
| LOW | tests/inputs/locale_facets.h | 21 | // USA. | COMMENT |
| LOW | tests/inputs/locale_facets.h | 41 | #ifndef _LOCALE_FACETS_H | COMMENT |
| LOW | tests/inputs/dd/bb/ee/TeapotRenderer.cpp | 21 | //-------------------------------------------------------------------------------- | COMMENT |
| LOW | tests/inputs/dd/bb/cc/MoreTeapotsRenderer.cpp | 21 | //-------------------------------------------------------------------------------- | COMMENT |
| LOW | tests/inputs/aa/bb/cc/plasma.c | 61 | #define FIXED_FROM_FLOAT(x) ((Fixed)((x)*FIXED_ONE)) | COMMENT |
| LOW | tests/inputs/aa/bb/cc/plasma.c | 81 | #endif | COMMENT |
| LOW | …sts/inputs/issues/753/Application_Data_Test.feature.cs | 1 | // ------------------------------------------------------------------------------ | COMMENT |
| LOW | tests/inputs/issues/753/csharp-designer.designer.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | tests/inputs/issues/280/R/locale_facets.h | 1 | // Locale support -*- C++ -*- | COMMENT |
| LOW | tests/inputs/issues/280/R/locale_facets.h | 21 | // USA. | COMMENT |
| LOW | tests/inputs/issues/280/R/locale_facets.h | 41 | #ifndef _LOCALE_FACETS_H | COMMENT |
| LOW | tests/inputs/issues/280/L/locale_facets.h | 1 | // Locale support -*- C++ -*- | COMMENT |
| LOW | tests/inputs/issues/280/L/locale_facets.h | 21 | // USA. | COMMENT |
| LOW | tests/inputs/issues/280/L/locale_facets.h | 41 | #ifndef _LOCALE_FACETS_H | COMMENT |
| LOW | tests/inputs/issues/513/R/locale_facets.h | 1 | // Locale support -*- C++ -*- | COMMENT |
| LOW | tests/inputs/issues/513/R/locale_facets.h | 21 | // USA. | COMMENT |
| LOW | tests/inputs/issues/513/R/locale_facets.h | 41 | #ifndef _LOCALE_FACETS_H | COMMENT |
| LOW | tests/inputs/issues/513/L/locale_facets.h | 1 | // Locale support -*- C++ -*- | COMMENT |
| LOW | tests/inputs/issues/513/L/locale_facets.h | 21 | // USA. | COMMENT |
| LOW | tests/inputs/issues/513/L/locale_facets.h | 41 | #ifndef _LOCALE_FACETS_H | COMMENT |
| LOW | tests/inputs/issues/579/csharp-autogen.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | tests/inputs/issues/577/tour.swift | 1 | // https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTo | COMMENT |
| LOW | tests/inputs/issues/577/tour2.swift | 1 | // https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTo | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/inputs/Application_Data_Test.feature.cs | 3 | // This code was generated by SpecFlow (https://www.specflow.org/). | COMMENT |
| HIGH | tests/inputs/csharp-designer.designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | …sts/inputs/issues/753/Application_Data_Test.feature.cs | 3 | // This code was generated by SpecFlow (https://www.specflow.org/). | COMMENT |
| HIGH | tests/inputs/issues/753/csharp-designer.designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | tests/inputs/issues/579/csharp-autogen.cs | 3 | // This code was generated by a tool. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/inputs/issues/906/previous_version.py | 342 | except Exception as ex: | CODE |
| HIGH | tests/inputs/issues/906/previous_version.py | 364 | except Exception as ex: | CODE |
| HIGH | tests/inputs/issues/906/previous_version.py | 377 | except Exception as ex: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | tests/inputs/issues/365/RSpecTests.java | 27 | org.assertj.core.util.Files.currentFolder().getParent(), "lib/bootstrap/rspec.rb" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/inputs/issues/906/previous_version.py | 195 | # Check if the combination of or_code and extension already exists | COMMENT |
| LOW | tests/inputs/issues/906/previous_version.py | 228 | # Check if the extension already exists in master extension table | COMMENT |
| LOW | tests/inputs/issues/906/current_version.py | 195 | # Check if the combination of or_code and extension already exists | COMMENT |
| LOW | tests/inputs/issues/906/current_version.py | 228 | # Check if the extension already exists in master extension table | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/inputs/issues/906/previous_version.py | 260 | def list_file_extensions_all_branches(project): | CODE |
| LOW | tests/inputs/issues/906/previous_version.py | 304 | def list_file_extensions_recursive(project,branch_name, path=""): | CODE |
| LOW⚡ | tests/inputs/issues/906/current_version.py | 260 | def list_file_extensions_all_branches(project): | CODE |
| LOW | tests/inputs/issues/906/current_version.py | 304 | def list_file_extensions_recursive(project,branch_name, path=""): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/inputs/issues/906/previous_version.py | 2 | CODE | |
| LOW | tests/inputs/issues/906/previous_version.py | 14 | CODE | |
| LOW | tests/inputs/issues/906/previous_version.py | 15 | CODE | |
| LOW | tests/inputs/issues/906/previous_version.py | 16 | CODE | |
| LOW | tests/inputs/issues/862/a.py | 2 | CODE | |
| LOW | tests/inputs/issues/862/b.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/inputs/utilities.R | 436 | ##' Does every level of f1 occur in conjunction with exactly one level | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/inputs/issues/906/previous_version.py | 80 | CODE | |
| LOW | tests/inputs/issues/906/previous_version.py | 304 | CODE |