pcwalton/sprocketnes
NES emulator written in Rust
- Repository: https://github.com/pcwalton/sprocketnes
- Commit:
163e5da03c6c1db2f78898a001f13d4dd739f0ff - Generated: 2026-11-13T23:30:49+00:00
- Scorer 0.1.0, scoring prov-4+qual-2+sec-2, report schema v2
Scores
| Pillar | Score | Signal | Confidence | Coverage |
|---|---|---|---|---|
| AI provenance (estimated AI-generated share) | 0 | none-detected | 65% | 100% |
| Code quality | 66 | adequate | 90% | 100% |
| Security | 74 | adequate | 85% | 100% |
AI provenance
No AI attribution or AI-consistent velocity signals detected.
-
Explicitly attributed share (lower bound): 0.0%
-
Unattributed share in AI-consistent velocity bursts: 0.0%
-
Estimated AI-generated share: 0.0%
-
Stylometry index: 0.19 per 1,000 lines (narrated steps 1, placeholders 0, assistant phrasing 0, emoji 0). Reported as a signal, not scored.
| Month | Lines added | Attributed to AI |
|---|---|---|
| 2013-11 | 68 | 0% |
| 2014-01 | 337 | 0% |
| 2014-03 | 186 | 0% |
| 2014-04 | 169 | 0% |
| 2014-05 | 740 | 0% |
| 2014-07 | 282 | 0% |
| 2014-08 | 51 | 0% |
| 2014-10 | 77 | 0% |
| 2014-11 | 16 | 0% |
| 2015-04 | 99 | 0% |
| 2015-07 | 1,306 | 0% |
| 2019-01 | 1,671 | 0% |
Evidence
- step-by-step narration comment: // First, mix all sample buffers into the first one. (src/apu.rs:7)
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.00, no CI test run detected; 0% of function code in complex or long functions; 0% duplicated lines. Weakest area: testing.
| Area | Score |
|---|---|
| Complexity (lizard) | 100 |
| Duplication | 98 |
| Code smells (Opengrep) | 100 |
| Tests and CI | 0 |
| Documentation | 65 |
| Type safety | n/a |
| Process (Scorecard review/maintenance) | n/a |
- Functions: 377; mean complexity 1.8, 90th percentile 4; 0 complex and 0 long functions
- Duplicated lines: 0.3% of 3,437 compared
- Tests: 0 test lines for 5,189 source lines (ratio 0.00); CI test commands: none detected; 0% of recent source commits also change tests
- Docs missing or thin: contributing, changelog
Security
Security posture is adequate: 3 known vulnerabilities in 3 dependencies. Weakest area: posture.
| Area | Score |
|---|---|
| Secrets (gitleaks, tree + history) | 100 |
| Static analysis (Opengrep) | 80 |
| Vulnerable dependencies (OSV) | 70 |
| CI workflows (zizmor) | n/a |
| Posture (policy, updates, signing, lockfiles) | 0 |
| OpenSSF Scorecard | n/a |
-
Known vulnerabilities: 3 in 3 packages (critical 1, high 0, medium 1, low 0)
-
Posture checks passed: lockfiles; missing: security policy, dependency updates, signed commits
Top findings
| Severity | Finding | Location |
|---|---|---|
| critical | osv/GHSA-mmc9-pwm7-qj5w: rand_core@0.3.0 (crates.io) is affected by RUSTSEC-2019-0035, GHSA-mmc9-pwm7-qj5w |
Cargo.lock |
| medium | osv/RUSTSEC-2025-0124: rand_os@0.1.1 (crates.io) is affected by RUSTSEC-2025-0124 |
Cargo.lock |
| medium | osv/GHSA-wcg3-cvx6-7396: time@0.1.42 (crates.io) is affected by RUSTSEC-2020-0071, GHSA-wcg3-cvx6-7396 |
Cargo.lock |
| low | opengrep/rust.lang.security.unsafe-usage: Detected 'unsafe' usage, please audit for secure usage [confidence high] |
src/apu.rs:788 |
| low | opengrep/rust.lang.security.unsafe-usage: Detected 'unsafe' usage, please audit for secure usage [confidence high] |
src/apu.rs:797 |
| low | opengrep/rust.lang.security.unsafe-usage: Detected 'unsafe' usage, please audit for secure usage [confidence high] |
src/audio.rs:43 |
| low | opengrep/rust.lang.security.unsafe-usage: Detected 'unsafe' usage, please audit for secure usage [confidence high] |
src/audio.rs:71 |
| low | opengrep/rust.lang.security.unsafe-usage: Detected 'unsafe' usage, please audit for secure usage [confidence high] |
src/audio.rs:73 |
| low | opengrep/rust.lang.security.unsafe-usage: Detected 'unsafe' usage, please audit for secure usage [confidence high] |
src/audio.rs:85 |
| low | opengrep/rust.lang.security.unsafe-usage: Detected 'unsafe' usage, please audit for secure usage [confidence high] |
src/audio.rs:105 |
| low | opengrep/rust.lang.security.unsafe-usage: Detected 'unsafe' usage, please audit for secure usage [confidence high] |
src/audio.rs:117 |
| low | opengrep/rust.lang.security.args: args should not be used for security operations. From the docs: "The first element is traditionally the path of the executable, but it can be set to arbitrary text, and might not even exist. This means this property should not be relied upon for security purposes." [confidence high] |
src/bin/nes.rs:33 |
| low | opengrep/rust.lang.security.unsafe-usage: Detected 'unsafe' usage, please audit for secure usage [confidence high] |
src/gfx.rs:412 |
| low | opengrep/rust.lang.security.unsafe-usage: Detected 'unsafe' usage, please audit for secure usage [confidence high] |
src/speex.rs:47 |
| low | opengrep/rust.lang.security.unsafe-usage: Detected 'unsafe' usage, please audit for secure usage [confidence high] |
src/speex.rs:65 |
| low | opengrep/rust.lang.security.unsafe-usage: Detected 'unsafe' usage, please audit for secure usage [confidence high] |
src/speex.rs:87 |
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: 5,189; test lines: 0
| Language | Lines |
|---|---|
| Rust | 5,189 |