Leaderboard github.com
pzfreo/wormgear
A tool for creating 3D models of worm gears
AI provenance
74%
explicit
- Confidence
- 95%
- Coverage
- 100%
Estimated share of AI-generated code. Explicit attribution is a lower bound.
Code quality
68/100
adequate
- Confidence
- 90%
- Coverage
- 100%
Complexity, duplication, lint density, tests, CI, docs and review process.
Security
66/100
weak
- Confidence
- 85%
- Coverage
- 100%
Secrets, static analysis, vulnerable dependencies, CI and supply-chain posture.
AI provenance
74% explicit
Explicit AI attribution on 74% of first-party code added; an estimated 74% including velocity signals.
How the score is built
- Explicitly attributed share74%
- Unattributed share in AI-pace bursts23%
- Estimated AI-generated share74%
- AI tool configuration files1
- Work sessions at AI pace3
- Releases at AI pace0
- Coding-style index (1.0+ means possible)1.00
Attributed AI tools
| Tool | Commits | Lines added | First seen | Last seen |
|---|---|---|---|---|
| Claude Code | 222 | 50,324 | 2026-01-17 | 2026-06-11 |
Lines added per month all AI-attributed share
- 2026-0149,436 · 65% AI
- 2026-0212,815 · 99% AI
- 2026-030 · 0% AI
- 2026-055,269 · 100% AI
- 2026-0661 · 100% AI
- 2026-0859 · 0% AI
Findings in AI-attributed lines vs the rest
From git blame: 19,649 lines trace to AI-attributed commits, 769 to others. Reported, not scored.
| Findings per 1,000 lines | AI-attributed | Other | Ratio |
|---|---|---|---|
| Code quality | 2.19 | 10.40 | 0.21× |
| Security | 1.02 | 0.00 | — |
Evidence by analyzer
Explicit AI attributionok26 items
- Claude Code: 222 attributed commits, 50,324 lines added
- Claude Code: trailer 'Co-Authored-By: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: PR description attribution
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-Authored-By: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-Authored-By: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-Authored-By: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- Claude Code: trailer 'Co-authored-by: Claude'
- attributed_commit_share
- 68.9%
- attributed_commits
- 222
- attributed_loc
- 50,324
- attributed_loc_share
- 74.4%
- commits
- 322
- effective_loc
- 67,640
- tools_detected
- 1
AI tool configurationok1 item
- artifacts
- 1
- earliest_adoption
- 2026-01-17
- tools_configured
- 1
- workflow_agents
- 0
Commit velocityok3 items
- 16,793 lines of first-party code in ~7.7h (2,177 lines/hour, 37 commit session)
- 6,471 lines of first-party code in ~4.0h (1,611 lines/hour, PR #35)
- 1,730 lines of first-party code in ~3.3h (521 lines/hour, 3 commit session)
- excluded_import_loc
- 0
- flagged_loc
- 24,994
- flagged_loc_share
- 37.0%
- flagged_units
- 3
- max_loc_per_hour
- 2,176.98
- measured_loc
- 67,552
- median_loc_per_hour
- 190.59
- pr_timed_units
- 122
- pre_ai_era_burst_loc
- 0
- pre_ai_era_bursts
- 0
- pre_ai_era_measured_loc
- 0
- work_units
- 137
Release velocityok
- flagged_releases
- 0
- max_loc_per_day
- 11,792.40
- releases
- 55
Coding styleok
- count:assistant_voice
- 0
- count:emoji_in_code
- 41
- count:narrated_steps
- 0
- count:placeholder
- 0
- files:assistant_voice
- 0
- files:emoji_in_code
- 8
- files:narrated_steps
- 0
- files:placeholder
- 0
- index
- 1.00
- lines_scanned
- 20,418
- per_kloc:assistant_voice
- 0
- per_kloc:emoji_in_code
- 2.01
- per_kloc:narrated_steps
- 0
- per_kloc:placeholder
- 0
Findings in AI-written linesok
- ai_lines
- 19,649
- blame_failures
- 0
- files_blamed
- 55
- other_lines
- 769
- quality:ai_findings
- 43
- quality:ai_per_kloc
- 2.19
- quality:other_findings
- 8
- quality:other_per_kloc
- 10.40
- quality:ratio
- 0.21
- security:ai_findings
- 20
- security:ai_per_kloc
- 1.02
- security:other_findings
- 0
- security:other_per_kloc
- 0
Code quality
68 adequate
Code quality is adequate: test-to-source ratio 0.63, CI runs tests; 36% of function code in complex or long functions; 8% duplicated lines. Weakest area: complexity.
How the score is built
- Complexity34
- Duplication60
- Lint and smells48
- Tests and CI100
- Documentation85
- Type safety99
- Review processnot measured
Evidence by analyzer
Complexity (lizard)ok10 items
- main in src/wormgear/cli/generate.py: complexity 125, 322 lines
- loadDesignIntoDesignTab in web/app.js: complexity 42, 116 lines
- to_markdown in src/wormgear/calculator/output.py: complexity 40, 153 lines
- handleProgress in web/modules/generator-ui.js: complexity 38, 57 lines
- create_hub in src/wormgear/core/features.py: complexity 31, 117 lines
- buildSpecRows in web/modules/format-utils.js: complexity 31, 76 lines
- interpret_changes in scripts/compare_step.py: complexity 30, 69 lines
- _simulate_hobbing in src/wormgear/core/virtual_hobbing.py: complexity 30, 145 lines
- updateSubProgress in web/modules/generator-ui.js: complexity 27, 88 lines
- validateCalculatorInputs in web/modules/schema-validator.js: complexity 27, 54 lines
- complex_functions
- 35
- function_nloc
- 10,720
- functions
- 438
- long_functions
- 12
- many_param_functions
- 19
- mean_ccn
- 5.80
- p90_ccn
- 13
- risky_nloc_share
- 35.7%
Duplication (jscpd)ok10 items
- 6+ duplicated lines: src/wormgear/__init__.py:33 and src/wormgear/__init__.py:195
- 6+ duplicated lines: src/wormgear/__init__.py:70 and src/wormgear/core/__init__.py:92
- 6+ duplicated lines: src/wormgear/calculator/core.py:475 and src/wormgear/calculator/core.py:661
- 6+ duplicated lines: src/wormgear/calculator/output.py:196 and src/wormgear/calculator/output.py:403
- 6+ duplicated lines: src/wormgear/cli/generate.py:1102 and src/wormgear/cli/generate.py:1120
- 6+ duplicated lines: src/wormgear/core/features.py:557 and src/wormgear/core/features.py:572
- 6+ duplicated lines: src/wormgear/core/globoid_worm.py:51 and src/wormgear/core/worm.py:54
- 6+ duplicated lines: src/wormgear/core/globoid_worm.py:170 and src/wormgear/core/virtual_hobbing.py:532
- 6+ duplicated lines: src/wormgear/core/globoid_worm.py:372 and src/wormgear/core/globoid_worm.py:693
- 6+ duplicated lines: src/wormgear/core/globoid_worm.py:1337 and src/wormgear/core/wheel.py:288
- compared_lines
- 15,233
- duplicated_lines
- 1,276
- duplicated_share
- 8.4%
- files
- 55
Lintok
- category:best-practice
- 17
- category:correctness
- 18
- category:maintainability
- 16
- findings
- 51
- scanned_lines
- 20,418
- weighted_findings
- 59.50
Tests and CIok6 items
- CI config: .github/workflows/ci.yml
.github/workflows/ci.yml - CI config: .github/workflows/deploy-web.yml
.github/workflows/deploy-web.yml - CI config: .github/workflows/publish.yml
.github/workflows/publish.yml - CI config: .github/workflows/test-web-build.yml
.github/workflows/test-web-build.yml - CI runs tests (pytest)
- CI runs linters (ruff, mypy, black --check)
- check:ci_present
- yes
- check:ci_runs_lint
- yes
- check:ci_runs_tests
- yes
- check:has_tests
- yes
- check:test_ratio
- yes
- check:tests_cochange
- yes
- ci_files
- 4
- cochange_commits
- 180
- cochange_share
- 27.2%
- source_lines
- 20,418
- test_lines
- 12,779
- test_ratio
- 0.63
Documentationok3 items
- README.md
README.md - LICENSE
LICENSE - CHANGELOG.md
CHANGELOG.md
- check:changelog
- yes
- check:contributing
- no
- check:license
- yes
- check:readme
- yes
- readme_lines
- 134
Type safetyok1 item
- Python strict type checking: pyproject.toml
pyproject.toml
- check:low_escape_density
- yes
- check:strict_config
- no
- escapes
- 42
- escapes_per_kloc
- 2.68
Security
66 weak
Security posture is weak: 5 known vulnerabilities in 2 dependencies; 8 high-severity SAST findings; 24 high-severity workflow issues. Weakest area: ci actions.
How the score is built
- Secrets100
- Static analysis (SAST)86
- Vulnerable dependencies77
- CI workflows1
- Security posture20
- OpenSSF Scorecardnot measured
Evidence by analyzer
OpenSSF Scorecardskipped
no published OpenSSF Scorecard result for this repo
Package registriesok
- checked
- 11
- declared
- 11
- lookup_errors
- 0
- missing
- 0
- recent
- 0
Secrets (gitleaks)ok
- secrets_current
- 0
- secrets_history
- 0
- secrets_low_confidence
- 0
- secrets_nonprod
- 0
Static analysis (opengrep)ok
- findings
- 20
- findings_high
- 8
- findings_low
- 0
- findings_medium
- 12
- parse_errors
- 0
- scanned_lines
- 20,418
- weighted_findings
- 9
Dependencies (osv-scanner)ok
- penalty
- 16
- vulnerabilities
- 5
- vulnerable_packages
- 2
- vulns_critical
- 0
- vulns_high
- 4
- vulns_low
- 0
- vulns_medium
- 1
- vulns_unknown
- 0
CI workflows (zizmor)ok
- findings
- 41
- findings_high
- 24
- findings_low
- 8
- findings_medium
- 9
- penalty
- 312
- workflows
- 4
Security postureok
- check:dependency_updates
- no
- check:lockfiles
- yes
- check:security_policy
- no
- check:signed_commits
- yes
- signed_commit_share
- 90.0%
- unpinned_manifests
- 0
Release downloadsok
- binary_assets
- 0
- signals
- 0
- suspicious
- 0
Findings
44 high55 medium18 low
| Severity | Rule | Location | Message | Tool |
|---|---|---|---|---|
| high | opengrep/python.lang.correctness.tempfile.tempfile-without-flush |
src/wormgear/core/geometry_repair.py:108 | Using 'f.name' without '.flush()' or '.close()' may cause an error because the file may not exist when 'f.name' is used. Use '.flush()' or close the file before using 'f.name'. | Lint |
| high | opengrep/python.lang.correctness.tempfile.tempfile-without-flush |
src/wormgear/core/geometry_repair.py:151 | Using 'f.name' without '.flush()' or '.close()' may cause an error because the file may not exist when 'f.name' is used. Use '.flush()' or close the file before using 'f.name'. | Lint |
| high | opengrep/python.lang.correctness.tempfile.tempfile-without-flush |
src/wormgear/core/worm.py:901 | Using 'f.name' without '.flush()' or '.close()' may cause an error because the file may not exist when 'f.name' is used. Use '.flush()' or close the file before using 'f.name'. | Lint |
| high | opengrep/python.lang.correctness.tempfile.tempfile-without-flush |
src/wormgear/io/package.py:107 | Using 'tmp.name' without '.flush()' or '.close()' may cause an error because the file may not exist when 'tmp.name' is used. Use '.flush()' or close the file before using 'tmp.name'. | Lint |
| high | opengrep/python.lang.correctness.tempfile.tempfile-without-flush |
src/wormgear/io/package.py:142 | Using 'tmp.name' without '.flush()' or '.close()' may cause an error because the file may not exist when 'tmp.name' is used. Use '.flush()' or close the file before using 'tmp.name'. | Lint |
| high | opengrep/python.lang.correctness.tempfile.tempfile-without-flush |
src/wormgear/io/package.py:187 | Using 'tmp.name' without '.flush()' or '.close()' may cause an error because the file may not exist when 'tmp.name' is used. Use '.flush()' or close the file before using 'tmp.name'. | Lint |
| high | opengrep/python.lang.correctness.tempfile.tempfile-without-flush |
src/wormgear/io/package.py:69 | Using 'tmp.name' without '.flush()' or '.close()' may cause an error because the file may not exist when 'tmp.name' is used. Use '.flush()' or close the file before using 'tmp.name'. | Lint |
| high | opengrep/python.lang.correctness.tempfile.tempfile-without-flush |
src/wormgear/io/package.py:85 | Using 'tmp.name' without '.flush()' or '.close()' may cause an error because the file may not exist when 'tmp.name' is used. Use '.flush()' or close the file before using 'tmp.name'. | Lint |
| high | zizmor/unpinned-uses |
.github/workflows/ci.yml:102 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/ci.yml:119 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/ci.yml:122 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/ci.yml:140 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/ci.yml:143 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/ci.yml:17 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/ci.yml:20 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/ci.yml:49 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/ci.yml:61 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/ci.yml:64 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/ci.yml:99 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/deploy-web.yml:31 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/deploy-web.yml:34 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/deploy-web.yml:55 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/deploy-web.yml:61 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/publish.yml:12 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/publish.yml:15 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/publish.yml:26 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/publish.yml:53 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/publish.yml:59 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/publish.yml:89 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/publish.yml:95 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/test-web-build.yml:22 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | zizmor/unpinned-uses |
.github/workflows/test-web-build.yml:25 | unpinned action reference [confidence high] | CI workflows (zizmor) |
| high | opengrep/javascript.browser.security.insecure-document-method |
web/app.js:407 | User controlled data in methods like `innerHTML`, `outerHTML` or `document.write` is an anti-pattern that can lead to XSS vulnerabilities [confidence low] | Static analysis (opengrep) |
| high | opengrep/javascript.browser.security.insecure-innerhtml |
web/app.js:407 | User controlled data in a `container.innerHTML` is an anti-pattern that can lead to XSS vulnerabilities [confidence low] | Static analysis (opengrep) |
| high | opengrep/javascript.browser.security.insecure-document-method |
web/app.js:712 | User controlled data in methods like `innerHTML`, `outerHTML` or `document.write` is an anti-pattern that can lead to XSS vulnerabilities [confidence low] | Static analysis (opengrep) |
| high | opengrep/javascript.browser.security.insecure-innerhtml |
web/app.js:712 | User controlled data in a `document.getElementById('spec-sheet').innerHTML` is an anti-pattern that can lead to XSS vulnerabilities [confidence low] | Static analysis (opengrep) |
| high | opengrep/javascript.browser.security.insecure-document-method |
web/modules/bore-calculator.js:58 | User controlled data in methods like `innerHTML`, `outerHTML` or `document.write` is an anti-pattern that can lead to XSS vulnerabilities [confidence low] | Static analysis (opengrep) |
| high | opengrep/javascript.browser.security.insecure-innerhtml |
web/modules/bore-calculator.js:58 | User controlled data in a `el.innerHTML` is an anti-pattern that can lead to XSS vulnerabilities [confidence low] | Static analysis (opengrep) |
| high | opengrep/javascript.browser.security.insecure-document-method |
web/modules/generator-ui.js:132 | User controlled data in methods like `innerHTML`, `outerHTML` or `document.write` is an anti-pattern that can lead to XSS vulnerabilities [confidence low] | Static analysis (opengrep) |
| high | opengrep/javascript.browser.security.insecure-innerhtml |
web/modules/generator-ui.js:132 | User controlled data in a `summary.innerHTML` is an anti-pattern that can lead to XSS vulnerabilities [confidence low] | Static analysis (opengrep) |
| high | osv/GHSA-2883-xcg3-v3hh |
web/package-lock.json | [email protected] (npm) is affected by GHSA-2883-xcg3-v3hh | Dependencies (osv-scanner) |
| high | osv/GHSA-52cp-r559-cp3m |
web/package-lock.json | [email protected] (npm) is affected by GHSA-52cp-r559-cp3m | Dependencies (osv-scanner) |
| high | osv/GHSA-5p4m-2wfm-xmqj |
web/package-lock.json | [email protected] (npm) is affected by GHSA-5p4m-2wfm-xmqj | Dependencies (osv-scanner) |
| high | osv/GHSA-r5fr-rjxr-66jc |
web/package-lock.json | [email protected] (npm) is affected by GHSA-r5fr-rjxr-66jc | Dependencies (osv-scanner) |
| medium | opengrep/python.lang.maintainability.is-function-without-parentheses |
scripts/compare_step.py:73 | Is "is_valid" a function or an attribute? If it is a function, you may have meant part.is_valid() because part.is_valid is always true. | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
scripts/export_sample_gltf.py:99 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.maintainability.is-function-without-parentheses |
scripts/generate_comparison_steps.py:61 | Is "is_valid" a function or an attribute? If it is a function, you may have meant solid.is_valid() because solid.is_valid is always true. | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
scripts/generate_schemas.py:125 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
scripts/generate_schemas.py:74 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
scripts/generate_schemas.py:95 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
src/wormgear/cli/generate.py:254 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.maintainability.is-function-without-parentheses |
src/wormgear/core/features.py:172 | Is "is_shaft" a function or an attribute? If it is a function, you may have meant self.is_shaft() because self.is_shaft is always true. | Lint |
| medium | opengrep/python.lang.maintainability.is-function-without-parentheses |
src/wormgear/core/features.py:549 | Is "is_shaft" a function or an attribute? If it is a function, you may have meant keyway.is_shaft() because keyway.is_shaft is always true. | Lint |
| medium | opengrep/python.lang.maintainability.useless-if-body |
src/wormgear/core/features.py:549 | Useless if statement; both blocks have the same body | Lint |
| medium | opengrep/python.lang.maintainability.is-function-without-parentheses |
src/wormgear/core/geometry_repair.py:114 | Is "is_valid" a function or an attribute? If it is a function, you may have meant reimported.is_valid() because reimported.is_valid is always true. | Lint |
| medium | opengrep/python.lang.maintainability.is-function-without-parentheses |
src/wormgear/core/geometry_repair.py:47 | Is "is_valid" a function or an attribute? If it is a function, you may have meant part.is_valid() because part.is_valid is always true. | Lint |
| medium | opengrep/python.lang.maintainability.is-function-without-parentheses |
src/wormgear/core/geometry_repair.py:59 | Is "is_valid" a function or an attribute? If it is a function, you may have meant result.is_valid() because result.is_valid is always true. | Lint |
| medium | opengrep/python.lang.maintainability.is-function-without-parentheses |
src/wormgear/core/geometry_repair.py:89 | Is "is_valid" a function or an attribute? If it is a function, you may have meant result.is_valid() because result.is_valid is always true. | Lint |
| medium | opengrep/python.lang.maintainability.is-function-without-parentheses |
src/wormgear/core/geometry_repair.py:99 | Is "is_valid" a function or an attribute? If it is a function, you may have meant result.is_valid() because result.is_valid is always true. | Lint |
| medium | opengrep/python.lang.best-practice.logging-error-without-handling |
src/wormgear/core/globoid_worm.py:513 | Errors should only be logged when handled. The code logs the error and propogates the exception, consider reducing the level to warning or info. | Lint |
| medium | opengrep/python.lang.best-practice.logging-error-without-handling |
src/wormgear/core/globoid_worm.py:960 | Errors should only be logged when handled. The code logs the error and propogates the exception, consider reducing the level to warning or info. | Lint |
| medium | opengrep/python.lang.maintainability.is-function-without-parentheses |
src/wormgear/core/rim_thickness.py:222 | Is "is_valid" a function or an attribute? If it is a function, you may have meant result.is_valid() because result.is_valid is always true. | Lint |
| medium | opengrep/python.lang.maintainability.is-function-without-parentheses |
src/wormgear/core/virtual_hobbing.py:218 | Is "is_shaft" a function or an attribute? If it is a function, you may have meant self.keyway.is_shaft() because self.keyway.is_shaft is always true. | Lint |
| medium | opengrep/python.lang.maintainability.is-function-without-parentheses |
src/wormgear/core/wheel.py:110 | Is "is_globoid" a function or an attribute? If it is a function, you may have meant self.is_globoid() because self.is_globoid is always true. | Lint |
| medium | opengrep/python.lang.maintainability.is-function-without-parentheses |
src/wormgear/core/wheel.py:186 | Is "is_globoid" a function or an attribute? If it is a function, you may have meant self.is_globoid() because self.is_globoid is always true. | Lint |
| medium | opengrep/python.lang.maintainability.is-function-without-parentheses |
src/wormgear/core/wheel.py:96 | Is "is_shaft" a function or an attribute? If it is a function, you may have meant self.keyway.is_shaft() because self.keyway.is_shaft is always true. | Lint |
| medium | opengrep/python.lang.maintainability.is-function-without-parentheses |
src/wormgear/core/worm.py:104 | Is "is_shaft" a function or an attribute? If it is a function, you may have meant self.keyway.is_shaft() because self.keyway.is_shaft is always true. | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
src/wormgear/io/loaders.py:489 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/python.lang.best-practice.unspecified-open-encoding |
src/wormgear/io/loaders.py:543 | Missing 'encoding' parameter. 'open()' uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding="utf-8"). | Lint |
| medium | opengrep/javascript.lang.best-practice.javascript-alert |
web/app.js:1035 | found alert() call; should this be in production code? | Lint |
| medium | opengrep/javascript.lang.best-practice.javascript-alert |
web/app.js:1172 | found alert() call; should this be in production code? | Lint |
| medium | opengrep/javascript.lang.best-practice.javascript-alert |
web/app.js:1264 | found alert() call; should this be in production code? | Lint |
| medium | opengrep/javascript.lang.best-practice.javascript-alert |
web/app.js:1270 | found alert() call; should this be in production code? | Lint |
| medium | opengrep/javascript.lang.best-practice.javascript-alert |
web/app.js:940 | found alert() call; should this be in production code? | Lint |
| medium | opengrep/javascript.lang.best-practice.javascript-alert |
web/app.js:944 | found alert() call; should this be in production code? | Lint |
| medium | opengrep/javascript.lang.best-practice.javascript-alert |
web/app.js:956 | found alert() call; should this be in production code? | Lint |
| medium | opengrep/javascript.lang.best-practice.javascript-alert |
web/app.js:961 | found alert() call; should this be in production code? | Lint |
| medium | zizmor/excessive-permissions |
.github/workflows/ci.yml:1 | overly broad permissions [confidence medium] | CI workflows (zizmor) |
| medium | zizmor/excessive-permissions |
.github/workflows/ci.yml:10 | overly broad permissions [confidence medium] | CI workflows (zizmor) |
| medium | zizmor/excessive-permissions |
.github/workflows/ci.yml:116 | overly broad permissions [confidence medium] | CI workflows (zizmor) |
| medium | zizmor/excessive-permissions |
.github/workflows/ci.yml:137 | overly broad permissions [confidence medium] | CI workflows (zizmor) |
| medium | zizmor/excessive-permissions |
.github/workflows/ci.yml:58 | overly broad permissions [confidence medium] | CI workflows (zizmor) |
| medium | zizmor/excessive-permissions |
.github/workflows/ci.yml:96 | overly broad permissions [confidence medium] | CI workflows (zizmor) |
| medium | zizmor/excessive-permissions |
.github/workflows/publish.yml:1 | overly broad permissions [confidence medium] | CI workflows (zizmor) |
| medium | zizmor/excessive-permissions |
.github/workflows/publish.yml:9 | overly broad permissions [confidence medium] | CI workflows (zizmor) |
| medium | zizmor/excessive-permissions |
.github/workflows/test-web-build.yml:18 | overly broad permissions [confidence medium] | CI workflows (zizmor) |
| medium | opengrep/javascript.lang.security.html-in-template-string |
web/app.js:348 | This template literal looks like HTML and has interpolated variables. These variables are not HTML-encoded by default. If the variables contain HTML tags, these may be interpreted by the browser, resulting in cross-site scripting (XSS).... | Static analysis (opengrep) |
| medium | opengrep/javascript.lang.security.html-in-template-string |
web/app.js:349 | This template literal looks like HTML and has interpolated variables. These variables are not HTML-encoded by default. If the variables contain HTML tags, these may be interpreted by the browser, resulting in cross-site scripting (XSS).... | Static analysis (opengrep) |
| medium | opengrep/javascript.lang.security.html-in-template-string |
web/app.js:351 | This template literal looks like HTML and has interpolated variables. These variables are not HTML-encoded by default. If the variables contain HTML tags, these may be interpreted by the browser, resulting in cross-site scripting (XSS).... | Static analysis (opengrep) |
| medium | opengrep/javascript.lang.security.html-in-template-string |
web/app.js:379 | This template literal looks like HTML and has interpolated variables. These variables are not HTML-encoded by default. If the variables contain HTML tags, these may be interpreted by the browser, resulting in cross-site scripting (XSS).... | Static analysis (opengrep) |
| medium | opengrep/javascript.lang.security.html-in-template-string |
web/app.js:382 | This template literal looks like HTML and has interpolated variables. These variables are not HTML-encoded by default. If the variables contain HTML tags, these may be interpreted by the browser, resulting in cross-site scripting (XSS).... | Static analysis (opengrep) |
| medium | opengrep/javascript.lang.security.html-in-template-string |
web/app.js:404 | This template literal looks like HTML and has interpolated variables. These variables are not HTML-encoded by default. If the variables contain HTML tags, these may be interpreted by the browser, resulting in cross-site scripting (XSS).... | Static analysis (opengrep) |
| medium | opengrep/javascript.lang.security.html-in-template-string |
web/app.js:712 | This template literal looks like HTML and has interpolated variables. These variables are not HTML-encoded by default. If the variables contain HTML tags, these may be interpreted by the browser, resulting in cross-site scripting (XSS).... | Static analysis (opengrep) |
| medium | opengrep/javascript.lang.security.html-in-template-string |
web/modules/bore-calculator.js:56 | This template literal looks like HTML and has interpolated variables. These variables are not HTML-encoded by default. If the variables contain HTML tags, these may be interpreted by the browser, resulting in cross-site scripting (XSS).... | Static analysis (opengrep) |
| medium | opengrep/javascript.lang.security.html-in-template-string |
web/modules/format-utils.js:185 | This template literal looks like HTML and has interpolated variables. These variables are not HTML-encoded by default. If the variables contain HTML tags, these may be interpreted by the browser, resulting in cross-site scripting (XSS).... | Static analysis (opengrep) |
| medium | opengrep/javascript.lang.security.html-in-template-string |
web/modules/format-utils.js:207 | This template literal looks like HTML and has interpolated variables. These variables are not HTML-encoded by default. If the variables contain HTML tags, these may be interpreted by the browser, resulting in cross-site scripting (XSS).... | Static analysis (opengrep) |
| medium | opengrep/javascript.lang.security.html-in-template-string |
web/modules/generator-ui.js:65 | This template literal looks like HTML and has interpolated variables. These variables are not HTML-encoded by default. If the variables contain HTML tags, these may be interpreted by the browser, resulting in cross-site scripting (XSS).... | Static analysis (opengrep) |
| medium | opengrep/javascript.lang.security.html-in-template-string |
web/modules/generator-ui.js:68 | This template literal looks like HTML and has interpolated variables. These variables are not HTML-encoded by default. If the variables contain HTML tags, these may be interpreted by the browser, resulting in cross-site scripting (XSS).... | Static analysis (opengrep) |
| medium | osv/GHSA-f23m-r3pf-42rh |
web/package-lock.json | [email protected] (npm) is affected by GHSA-f23m-r3pf-42rh | Dependencies (osv-scanner) |
| low | opengrep/bash.lang.correctness.unquoted-variable-expansion-in-command |
scripts/publish.sh:57 | Variable expansions must be double-quoted so as to prevent being split into multiple pieces according to whitespace or whichever separator is specified by the IFS variable. If you really wish to split the variable's contents, you may... | Lint |
| low | opengrep/bash.lang.correctness.unquoted-variable-expansion-in-command |
scripts/publish.sh:76 | Variable expansions must be double-quoted so as to prevent being split into multiple pieces according to whitespace or whichever separator is specified by the IFS variable. If you really wish to split the variable's contents, you may... | Lint |
| low | opengrep/javascript.lang.correctness.missing-template-string-indicator |
web/generator-worker.js:190 | This looks like a JavaScript template string. Are you missing a '$' in front of '{...}'? | Lint |
| low | opengrep/javascript.lang.correctness.missing-template-string-indicator |
web/generator-worker.js:190 | This looks like a JavaScript template string. Are you missing a '$' in front of '{...}'? | Lint |
| low | opengrep/javascript.lang.correctness.missing-template-string-indicator |
web/generator-worker.js:233 | This looks like a JavaScript template string. Are you missing a '$' in front of '{...}'? | Lint |
| low | opengrep/javascript.lang.correctness.missing-template-string-indicator |
web/generator-worker.js:233 | This looks like a JavaScript template string. Are you missing a '$' in front of '{...}'? | Lint |
| low | opengrep/javascript.lang.correctness.missing-template-string-indicator |
web/generator-worker.js:254 | This looks like a JavaScript template string. Are you missing a '$' in front of '{...}'? | Lint |
| low | opengrep/javascript.lang.correctness.missing-template-string-indicator |
web/generator-worker.js:254 | This looks like a JavaScript template string. Are you missing a '$' in front of '{...}'? | Lint |
| low | opengrep/javascript.lang.correctness.missing-template-string-indicator |
web/generator-worker.js:61 | This looks like a JavaScript template string. Are you missing a '$' in front of '{...}'? | Lint |
| low | opengrep/javascript.lang.correctness.missing-template-string-indicator |
web/generator-worker.js:61 | This looks like a JavaScript template string. Are you missing a '$' in front of '{...}'? | Lint |
| low | zizmor/artipacked |
.github/workflows/ci.yml:119 | credential persistence through GitHub Actions artifacts [confidence low] | CI workflows (zizmor) |
| low | zizmor/artipacked |
.github/workflows/ci.yml:140 | credential persistence through GitHub Actions artifacts [confidence low] | CI workflows (zizmor) |
| low | zizmor/artipacked |
.github/workflows/ci.yml:17 | credential persistence through GitHub Actions artifacts [confidence low] | CI workflows (zizmor) |
| low | zizmor/artipacked |
.github/workflows/ci.yml:61 | credential persistence through GitHub Actions artifacts [confidence low] | CI workflows (zizmor) |
| low | zizmor/artipacked |
.github/workflows/ci.yml:99 | credential persistence through GitHub Actions artifacts [confidence low] | CI workflows (zizmor) |
| low | zizmor/artipacked |
.github/workflows/deploy-web.yml:30 | credential persistence through GitHub Actions artifacts [confidence low] | CI workflows (zizmor) |
| low | zizmor/artipacked |
.github/workflows/publish.yml:12 | credential persistence through GitHub Actions artifacts [confidence low] | CI workflows (zizmor) |
| low | zizmor/artipacked |
.github/workflows/test-web-build.yml:22 | credential persistence through GitHub Actions artifacts [confidence low] | CI workflows (zizmor) |
Tools and coverage
Every analyzer that ran on this commit. A failed or skipped tool is a coverage gap: its share of the score is left out and the coverage figure drops.
| Analyzer | Pillar | Status | Version | Findings | Note |
|---|---|---|---|---|---|
| AI tool configuration | AI provenance | ok | signatures-v1 | 0 | |
| Explicit AI attribution | AI provenance | ok | signatures-v1 | 0 | |
| Release velocity | AI provenance | ok | prov-4 | 0 | |
| Coding style | AI provenance | ok | — | 0 | |
| Commit velocity | AI provenance | ok | prov-4 | 0 | |
| Findings in AI-written lines | AI provenance | ok | git-blame | 0 | |
| Complexity (lizard) | Code quality | ok | lizard 1.25.1 | 0 | |
| Documentation | Code quality | ok | — | 0 | |
| Duplication (jscpd) | Code quality | ok | repotrust-dup-w6 | 0 | |
| Lint | Code quality | ok | opengrep 1.33.1; rules f1d2b562b414 | 51 | |
| Tests and CI | Code quality | ok | — | 0 | |
| Type safety | Code quality | ok | — | 0 | |
| CI workflows (zizmor) | Security | ok | zizmor 1.32.0 | 41 | |
| Dependencies (osv-scanner) | Security | ok | osv-scanner version: 2.7.1 | 5 | |
| Release downloads | Security | ok | — | 0 | |
| Security posture | Security | ok | — | 0 | |
| Package registries | Security | ok | — | 0 | |
| Static analysis (opengrep) | Security | ok | opengrep 1.33.1; rules f1d2b562b414 | 20 | |
| OpenSSF Scorecard | Security | skipped | — | 0 | no published OpenSSF Scorecard result for this repo |
| Secrets (gitleaks) | Security | ok | gitleaks 8.30.1 | 0 |
Score history
Scores from different scoring versions aren't directly comparable.
| Scored | Commit | Scoring | AI provenance | Quality | Security |
|---|---|---|---|---|---|
| 2026-11-14 | b2e287f9717c | prov-5+qual-2+sec-2 | 74% | 68 | 66 |
| 2026-11-14 | b2e287f9717c | prov-4+qual-2+sec-2 | 74% | 68 | 66 |
Full text report
- Repository: https://github.com/pzfreo/wormgear
- Commit:
b2e287f9717c851eb2f6dc942f045f72201b6c77 - Generated: 2026-11-14T14:52:06+00:00
- Scorer 0.1.0, scoring prov-5+qual-2+sec-2, report schema v2
Scores
| Pillar | Score | Signal | Confidence | Coverage |
|---|---|---|---|---|
| AI provenance (estimated AI-generated share) | 74 | explicit | 95% | 100% |
| Code quality | 68 | adequate | 90% | 100% |
| Security | 66 | weak | 85% | 100% |
AI provenance
Explicit AI attribution on 74% of first-party code added; an estimated 74% including velocity signals.
- Explicitly attributed share (lower bound): 74.4%
- Unattributed share in AI-consistent velocity bursts: 22.9%
- Estimated AI-generated share: 74.4%
| AI tool | Attributed commits | Lines added |
|---|---|---|
| Claude Code | 222 | 50,324 |
- AI tooling configured in repo: claude-code
Current source lines last changed by AI-attributed commits: 19,649 of 20,418.
| Findings per 1,000 lines | AI-attributed | Other | Ratio |
|---|---|---|---|
| Quality | 2.188 | 10.403 | 0.21x |
| Security | 1.018 | 0.0 | n/a |
- Stylometry index: 1.00 per 1,000 lines (narrated steps 0, placeholders 0, assistant phrasing 0, emoji 41). Reported as a signal, not scored.
| Month | Lines added | Attributed to AI |
|---|---|---|
| 2026-01 | 49,436 | 65% |
| 2026-02 | 12,815 | 99% |
| 2026-05 | 5,269 | 100% |
| 2026-06 | 61 | 100% |
| 2026-08 | 59 | 0% |
Evidence
- Claude Code: trailer 'Co-Authored-By: Claude' (f4f85fdfcca5)
- Claude Code: trailer 'Co-authored-by: Claude' (d1750b04407a)
- Claude Code: trailer 'Co-authored-by: Claude' (f5fc84386025)
- Claude Code: trailer 'Co-authored-by: Claude' (c068ab9b8ebc)
- Claude Code: PR description attribution (7d288bce80ab)
- Claude Code: trailer 'Co-authored-by: Claude' (164b21f16581)
- Claude Code: trailer 'Co-authored-by: Claude' (24d43d3cf324)
- Claude Code: trailer 'Co-authored-by: Claude' (10bc00ec65de)
- Claude Code: trailer 'Co-authored-by: Claude' (0b8e3c889f26)
- Claude Code: trailer 'Co-authored-by: Claude' (118660820a0c)
- Claude Code: trailer 'Co-authored-by: Claude' (246f594f01e7)
- Claude Code: trailer 'Co-Authored-By: Claude' (c814a2db9a9f)
- Claude Code: trailer 'Co-authored-by: Claude' (78f70afe6bea)
- Claude Code: trailer 'Co-authored-by: Claude' (a0f20229a6a4)
- Claude Code: trailer 'Co-Authored-By: Claude' (bf157a8e3c10)
AI provenance describes how code was produced; it is not a quality judgment. Unless attribution is explicit, these are signals consistent with AI generation, not proof. Squash/rebase workflows, imported code, and rewritten history reduce accuracy.
Code quality
Code quality is adequate: test-to-source ratio 0.63, CI runs tests; 36% of function code in complex or long functions; 8% duplicated lines. Weakest area: complexity.
| Area | Score |
|---|---|
| Complexity (lizard) | 34 |
| Duplication | 60 |
| Code smells (Opengrep) | 48 |
| Tests and CI | 100 |
| Documentation | 85 |
| Type safety | 99 |
| Process (Scorecard review/maintenance) | n/a |
- Functions: 438; mean complexity 5.8, 90th percentile 13; 35 complex and 12 long functions
- Duplicated lines: 8.4% of 15,233 compared
- Tests: 12,779 test lines for 20,418 source lines (ratio 0.63); CI test commands: pytest; 27% of recent source commits also change tests
- Docs missing or thin: contributing
Most complex functions:
- main in src/wormgear/cli/generate.py: complexity 125, 322 lines
- loadDesignIntoDesignTab in web/app.js: complexity 42, 116 lines
- to_markdown in src/wormgear/calculator/output.py: complexity 40, 153 lines
- handleProgress in web/modules/generator-ui.js: complexity 38, 57 lines
- create_hub in src/wormgear/core/features.py: complexity 31, 117 lines
Security
Security posture is weak: 5 known vulnerabilities in 2 dependencies; 8 high-severity SAST findings; 24 high-severity workflow issues. Weakest area: ci actions.
| Area | Score |
|---|---|
| Secrets (gitleaks, tree + history) | 100 |
| Static analysis (Opengrep) | 86 |
| Vulnerable dependencies (OSV) | 77 |
| CI workflows (zizmor) | 1 |
| Posture (policy, updates, signing, lockfiles) | 20 |
| OpenSSF Scorecard | n/a |
-
Known vulnerabilities: 5 in 2 packages (critical 0, high 4, medium 1, low 0)
-
Posture checks passed: signed commits, lockfiles; missing: security policy, dependency updates
Top findings
| Severity | Finding | Location |
|---|---|---|
| high | opengrep/javascript.browser.security.insecure-document-method: User controlled data in methods like innerHTML, outerHTML or document.write is an anti-pattern that can lead to XSS vulnerabilities [confidence low] |
web/app.js:407 |
| high | opengrep/javascript.browser.security.insecure-innerhtml: User controlled data in a container.innerHTML is an anti-pattern that can lead to XSS vulnerabilities [confidence low] |
web/app.js:407 |
| high | opengrep/javascript.browser.security.insecure-document-method: User controlled data in methods like innerHTML, outerHTML or document.write is an anti-pattern that can lead to XSS vulnerabilities [confidence low] |
web/app.js:712 |
| high | opengrep/javascript.browser.security.insecure-innerhtml: User controlled data in a document.getElementById('spec-sheet').innerHTML is an anti-pattern that can lead to XSS vulnerabilities [confidence low] |
web/app.js:712 |
| high | opengrep/javascript.browser.security.insecure-document-method: User controlled data in methods like innerHTML, outerHTML or document.write is an anti-pattern that can lead to XSS vulnerabilities [confidence low] |
web/modules/bore-calculator.js:58 |
| high | opengrep/javascript.browser.security.insecure-innerhtml: User controlled data in a el.innerHTML is an anti-pattern that can lead to XSS vulnerabilities [confidence low] |
web/modules/bore-calculator.js:58 |
| high | opengrep/javascript.browser.security.insecure-document-method: User controlled data in methods like innerHTML, outerHTML or document.write is an anti-pattern that can lead to XSS vulnerabilities [confidence low] |
web/modules/generator-ui.js:132 |
| high | opengrep/javascript.browser.security.insecure-innerhtml: User controlled data in a summary.innerHTML is an anti-pattern that can lead to XSS vulnerabilities [confidence low] |
web/modules/generator-ui.js:132 |
| high | osv/GHSA-2883-xcg3-v3hh: [email protected] (npm) is affected by GHSA-2883-xcg3-v3hh |
web/package-lock.json |
| high | osv/GHSA-52cp-r559-cp3m: [email protected] (npm) is affected by GHSA-52cp-r559-cp3m |
web/package-lock.json |
| high | osv/GHSA-5p4m-2wfm-xmqj: [email protected] (npm) is affected by GHSA-5p4m-2wfm-xmqj |
web/package-lock.json |
| high | osv/GHSA-r5fr-rjxr-66jc: [email protected] (npm) is affected by GHSA-r5fr-rjxr-66jc |
web/package-lock.json |
| high | zizmor/unpinned-uses: unpinned action reference [confidence high] |
.github/workflows/ci.yml:17 |
| high | zizmor/unpinned-uses: unpinned action reference [confidence high] |
.github/workflows/ci.yml:20 |
| high | zizmor/unpinned-uses: unpinned action reference [confidence high] |
.github/workflows/ci.yml:49 |
| high | zizmor/unpinned-uses: unpinned action reference [confidence high] |
.github/workflows/ci.yml:61 |
| high | zizmor/unpinned-uses: unpinned action reference [confidence high] |
.github/workflows/ci.yml:64 |
| high | zizmor/unpinned-uses: unpinned action reference [confidence high] |
.github/workflows/ci.yml:99 |
| high | zizmor/unpinned-uses: unpinned action reference [confidence high] |
.github/workflows/ci.yml:102 |
| high | zizmor/unpinned-uses: unpinned action reference [confidence high] |
.github/workflows/ci.yml:119 |
| high | zizmor/unpinned-uses: unpinned action reference [confidence high] |
.github/workflows/ci.yml:122 |
| high | zizmor/unpinned-uses: unpinned action reference [confidence high] |
.github/workflows/ci.yml:140 |
| high | zizmor/unpinned-uses: unpinned action reference [confidence high] |
.github/workflows/ci.yml:143 |
| high | zizmor/unpinned-uses: unpinned action reference [confidence high] |
.github/workflows/deploy-web.yml:31 |
| high | zizmor/unpinned-uses: unpinned action reference [confidence high] |
.github/workflows/deploy-web.yml:34 |
Static signals only: the scorer never runs the project's code. Secret findings are pattern matches that were not verified, and secret values are never stored.
Repository profile
- Source lines: 20,418; test lines: 12,779
| Language | Lines |
|---|---|
| Python | 27,673 |
| JavaScript | 4,891 |
| Shell | 392 |
| TypeScript | 241 |