Leaderboard github.com
marcoscartes/network-scanner-go
Advanced network scanner written in Go with web dashboard, notifications, and historical analytics
AI provenance
0%
possible
- Confidence
- 45%
- Coverage
- 100%
Estimated share of AI-generated code. Explicit attribution is a lower bound.
Code quality
48/100
poor
- Confidence
- 90%
- Coverage
- 100%
Complexity, duplication, lint density, tests, CI, docs and review process.
Security
84/100
adequate
- Confidence
- 85%
- Coverage
- 100%
Secrets, static analysis, vulnerable dependencies, CI and supply-chain posture.
AI provenance
0% possible
Weak signals consistent with AI-assisted development. Comments and strings use phrasing typical of LLM-written code (see the coding style evidence).
How the score is built
- Explicitly attributed share0%
- Unattributed share in AI-pace bursts69%
- Estimated AI-generated share0%
- AI tool configuration files0
- Work sessions at AI pace1
- Releases at AI pace0
- Coding-style index (1.0+ means possible)2.10
Lines added per month all AI-attributed share
- 2025-124,110 · 0% AI
Evidence by analyzer
Explicit AI attributionok
- attributed_commit_share
- 0.0%
- attributed_commits
- 0
- attributed_loc
- 0
- attributed_loc_share
- 0.0%
- commits
- 19
- effective_loc
- 4,110
- tools_detected
- 0
AI tool configurationok
- artifacts
- 0
- tools_configured
- 0
- workflow_agents
- 0
Commit velocityok1 item
- excluded_import_loc
- 0
- flagged_loc
- 2,830
- flagged_loc_share
- 68.9%
- flagged_units
- 1
- max_loc_per_hour
- 583.67
- measured_loc
- 4,110
- median_loc_per_hour
- 155.55
- pr_timed_units
- 0
- pre_ai_era_burst_loc
- 0
- pre_ai_era_bursts
- 0
- pre_ai_era_measured_loc
- 0
- work_units
- 3
Release velocityok
- flagged_releases
- 0
- max_loc_per_day
- 13,680
- releases
- 8
Coding styleok2 items
- placeholder or demo-only phrasing: // If there's a CVE keyword, search for CVEs (in a real app this would be async or background)
- placeholder or demo-only phrasing: // Note: In a real app we'd search the database for all CVEs related to this keyword
- count:assistant_voice
- 0
- count:emoji_in_code
- 9
- count:narrated_steps
- 0
- count:placeholder
- 2
- files:assistant_voice
- 0
- files:emoji_in_code
- 2
- files:narrated_steps
- 0
- files:placeholder
- 1
- index
- 2.10
- lines_scanned
- 4,057
- per_kloc:assistant_voice
- 0
- per_kloc:emoji_in_code
- 2.22
- per_kloc:narrated_steps
- 0
- per_kloc:placeholder
- 0.49
Code quality
48 poor
Code quality is poor: test-to-source ratio 0.00, no CI test run detected; 16% of function code in complex or long functions; 10% duplicated lines. Weakest area: testing.
How the score is built
- Complexity62
- Duplication55
- Lint and smells94
- Tests and CI0
- Documentation60
- Type safetynot measured
- Review processnot measured
Evidence by analyzer
Complexity (lizard)ok4 items
- main in cmd/scanner/main.go: complexity 29, 140 lines
- Match in internal/search/query_parser.go: complexity 27, 61 lines
- handleIndex in internal/web/server.go: complexity 17, 79 lines
- Init in internal/database/db.go: complexity 7, 123 lines
- complex_functions
- 3
- function_nloc
- 2,511
- functions
- 140
- long_functions
- 2
- many_param_functions
- 0
- mean_ccn
- 3.64
- p90_ccn
- 8
- risky_nloc_share
- 16.1%
Duplication (jscpd)ok7 items
- 6+ duplicated lines: docs/PORT_TOOLTIPS_CODE_REFERENCE.js:22 and docs/PORT_TOOLTIPS_CODE_REFERENCE.js:39
- 6+ duplicated lines: internal/database/db.go:329 and internal/database/db.go:363
- 6+ duplicated lines: internal/database/db.go:508 and internal/history/recorder.go:149
- 6+ duplicated lines: internal/database/db.go:638 and internal/history/analyzer.go:10
- 6+ duplicated lines: internal/history/analyzer.go:231 and internal/history/recorder.go:178
- 6+ duplicated lines: internal/security/cve_client.go:52 and internal/security/cve_client.go:73
- 6+ duplicated lines: internal/web/server.go:95 and internal/web/server.go:196
- compared_lines
- 2,806
- duplicated_lines
- 281
- duplicated_share
- 10.0%
- files
- 18
Lintok
- category:best-practice
- 1
- findings
- 1
- scanned_lines
- 4,057
- weighted_findings
- 1
Tests and CIok
- check:ci_present
- no
- check:ci_runs_lint
- no
- check:ci_runs_tests
- no
- check:has_tests
- no
- check:test_ratio
- no
- check:tests_cochange
- no
- ci_files
- 0
- cochange_commits
- 11
- cochange_share
- 0.0%
- source_lines
- 4,057
- test_lines
- 0
- test_ratio
- 0
Documentationok2 items
- README.md
README.md - CHANGELOG.md
CHANGELOG.md
- check:changelog
- yes
- check:contributing
- no
- check:license
- no
- check:readme
- yes
- readme_lines
- 235
Type safetyskipped
Security
84 adequate
Security posture is adequate: 1 known vulnerabilities in 1 dependencies. Weakest area: posture.
How the score is built
- Secrets100
- Static analysis (SAST)93
- Vulnerable dependencies95
- CI workflowsnot measured
- Security posture0
- OpenSSF Scorecardnot measured
Evidence by analyzer
OpenSSF Scorecardskipped
no published OpenSSF Scorecard result for this repo
Package registriesskipped
no registry dependencies declared
Secrets (gitleaks)ok
- secrets_current
- 0
- secrets_history
- 0
- secrets_low_confidence
- 0
- secrets_nonprod
- 0
Static analysis (opengrep)ok
- findings
- 2
- findings_high
- 0
- findings_low
- 0
- findings_medium
- 2
- parse_errors
- 1
- scanned_lines
- 4,057
- weighted_findings
- 0.85
Dependencies (osv-scanner)ok
- penalty
- 3
- vulnerabilities
- 1
- vulnerable_packages
- 1
- vulns_critical
- 0
- vulns_high
- 0
- vulns_low
- 0
- vulns_medium
- 0
- vulns_unknown
- 1
CI workflows (zizmor)skipped
Security postureok
- check:dependency_updates
- no
- check:lockfiles
- yes
- check:security_policy
- no
- check:signed_commits
- no
- signed_commit_share
- 0.0%
- unpinned_manifests
- 0
Release downloadsok1 item
- binary_assets
- 1
- signals
- 1
- suspicious
- 0
Findings
4 medium
| Severity | Rule | Location | Message | Tool |
|---|---|---|---|---|
| medium | opengrep/go.lang.best-practice.hidden-goroutine |
internal/web/websocket.go:86 | Detected a hidden goroutine. Function invocations are expected to synchronous, and this function will execute asynchronously because all it does is call a goroutine. Instead, remove the internal goroutine and call the function using 'go'. | Lint |
| medium | osv/GO-2026-5024 |
go.mod | golang.org/x/[email protected] (Go) is affected by GO-2026-5024 | Dependencies (osv-scanner) |
| medium | opengrep/go.lang.security.audit.net.use-tls |
internal/web/server.go:356 | Found an HTTP server without TLS. Use 'http.ListenAndServeTLS' instead. See https://golang.org/pkg/net/http/#ListenAndServeTLS for more information. [confidence medium] | Static analysis (opengrep) |
| medium | opengrep/go.lang.security.audit.xss.no-direct-write-to-responsewriter |
internal/web/server.go:695 | Detected directly writing or similar in 'http.ResponseWriter.write()'. This bypasses HTML escaping that prevents cross-site scripting vulnerabilities. Instead, use the 'html/template' package and render data using 'template.Execute()'.... | Static analysis (opengrep) |
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 | |
| 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 | 1 | |
| Tests and CI | Code quality | ok | — | 0 | |
| Type safety | Code quality | skipped | — | 0 | |
| CI workflows (zizmor) | Security | skipped | — | 0 | |
| Dependencies (osv-scanner) | Security | ok | osv-scanner version: 2.7.1 | 1 | |
| Release downloads | Security | ok | — | 0 | |
| Security posture | Security | ok | — | 0 | |
| Package registries | Security | skipped | — | 0 | no registry dependencies declared |
| Static analysis (opengrep) | Security | ok | opengrep 1.33.1; rules f1d2b562b414 | 2 | |
| 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 | 2a3ce57a7c8a | prov-5+qual-2+sec-2 | 0% | 48 | 84 |
| 2026-11-14 | 2a3ce57a7c8a | prov-4+qual-2+sec-2 | 0% | 48 | 84 |
Full text report
- Repository: https://github.com/marcoscartes/network-scanner-go
- Commit:
2a3ce57a7c8aef0df065046ed9e13eec623d00a6 - 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) | 0 | possible | 45% | 100% |
| Code quality | 48 | poor | 90% | 100% |
| Security | 84 | adequate | 85% | 100% |
AI provenance
Weak signals consistent with AI-assisted development. Comments and strings use phrasing typical of LLM-written code (see the coding style evidence).
-
Explicitly attributed share (lower bound): 0.0%
-
Unattributed share in AI-consistent velocity bursts: 68.9%
-
Estimated AI-generated share: 0.0%
-
Stylometry index: 2.10 per 1,000 lines (narrated steps 0, placeholders 2, assistant phrasing 0, emoji 9). Reported as a signal, not scored.
| Month | Lines added | Attributed to AI |
|---|---|---|
| 2025-12 | 4,110 | 0% |
Evidence
- 2,830 lines of first-party code in ~4.8h (584 lines/hour, 7 commit session) (62ff00340726)
- placeholder or demo-only phrasing: // If there's a CVE keyword, search for CVEs (in a real app this would be async or background) (internal/sec)
- placeholder or demo-only phrasing: // Note: In a real app we'd search the database for all CVEs related to this keyword (internal/sec)
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 poor: test-to-source ratio 0.00, no CI test run detected; 16% of function code in complex or long functions; 10% duplicated lines. Weakest area: testing.
| Area | Score |
|---|---|
| Complexity (lizard) | 62 |
| Duplication | 55 |
| Code smells (Opengrep) | 94 |
| Tests and CI | 0 |
| Documentation | 60 |
| Type safety | n/a |
| Process (Scorecard review/maintenance) | n/a |
- Functions: 140; mean complexity 3.6, 90th percentile 8; 3 complex and 2 long functions
- Duplicated lines: 10.0% of 2,806 compared
- Tests: 0 test lines for 4,057 source lines (ratio 0.00); CI test commands: none detected; 0% of recent source commits also change tests
- Docs missing or thin: license, contributing
Most complex functions:
- main in cmd/scanner/main.go: complexity 29, 140 lines
- Match in internal/search/query_parser.go: complexity 27, 61 lines
- handleIndex in internal/web/server.go: complexity 17, 79 lines
- Init in internal/database/db.go: complexity 7, 123 lines
Security
Security posture is adequate: 1 known vulnerabilities in 1 dependencies. Weakest area: posture.
| Area | Score |
|---|---|
| Secrets (gitleaks, tree + history) | 100 |
| Static analysis (Opengrep) | 93 |
| Vulnerable dependencies (OSV) | 95 |
| CI workflows (zizmor) | n/a |
| Posture (policy, updates, signing, lockfiles) | 0 |
| OpenSSF Scorecard | n/a |
-
Known vulnerabilities: 1 in 1 packages (critical 0, high 0, medium 0, low 0)
-
Posture checks passed: lockfiles; missing: security policy, dependency updates, signed commits
Top findings
| Severity | Finding | Location |
|---|---|---|
| medium | opengrep/go.lang.security.audit.net.use-tls: Found an HTTP server without TLS. Use 'http.ListenAndServeTLS' instead. See https://golang.org/pkg/net/http/#ListenAndServeTLS for more information. [confidence medium] |
internal/web/server.go:356 |
| medium | opengrep/go.lang.security.audit.xss.no-direct-write-to-responsewriter: Detected directly writing or similar in 'http.ResponseWriter.write()'. This bypasses HTML escaping that prevents cross-site scripting vulnerabilities. Instead, use the 'html/template' package and render data using 'template.Execute()'. [confidence low] |
internal/web/server.go:695 |
| medium | osv/GO-2026-5024: golang.org/x/[email protected] (Go) is affected by GO-2026-5024 |
go.mod |
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.
Distribution signals
- binary-release-asset: release v2.0.0 ships scanner.exe (7 downloads)
Signals consistent with a repository that exists to distribute a download. They are heuristics, not a verdict; release files were not downloaded or inspected.
Repository profile
- Source lines: 4,057; test lines: 0
| Language | Lines |
|---|---|
| Go | 3,712 |
| JavaScript | 345 |