Repository Analysis

microsoft/RustTraining

Beginner, advanced, expert level Rust training material

0.9 Likely human-written View on GitHub
0.9
Adjusted Score
0.9
Raw Score
100%
Time Factor
2026-05-25
Last Push
14,441
Stars
Rust
Language
77,337
Lines of Code
193
Files
45
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 0MEDIUM 7LOW 37

Pattern Findings

45 matches across 5 categories. Click a row to expand file-level details.

Over-Commented Block29 hits · 29 pts
SeverityFileLineSnippet
LOWcsharp-book/RustBootstrapForCSharp.md801}
LOWcsharp-book/src/ch03-built-in-types-and-variables.md461/* Multi-line
LOWcsharp-book/src/ch16-3-rust-tooling-ecosystem.md61
LOW…p-book/src/ch15-1-essential-crates-for-c-developers.md321}
LOW…rns-book/src/ch14-testing-and-benchmarking-patterns.md61
LOW…book/src/ch06-concurrency-vs-parallelism-vs-threads.md401 }
LOW…rns-book/src/ch15-crate-architecture-and-api-design.md481// #[arg(short, long)]
LOW…rns-book/src/ch15-crate-architecture-and-api-design.md501# type Error = String;
LOW…rns-book/src/ch15-crate-architecture-and-api-design.md801/// Parses a diagnostic fault code from a string.
LOW…k/src/ch06-dependency-management-and-supply-chain-s.md21which tracks known vulnerabilities in published crates.
LOW…k/src/ch06-dependency-management-and-supply-chain-s.md221# Output:
LOW…k/src/ch06-dependency-management-and-supply-chain-s.md241cargo tree --invert --package openssl-sys
LOW…k/src/ch05-miri-valgrind-and-sanitizers-verifying-u.md81mod tests {
LOW…ring-book/src/ch08-compile-time-and-developer-tools.md161# x = unsafe code used by the build
LOW…g-book/src/ch10-windows-and-conditional-compilation.md41// Operating system
LOWpython-book/src/ch08-crates-and-modules.md1## Rust Modules vs Python Packages
LOWpython-book/src/ch08-crates-and-modules.md21# ├── user.py
LOWpython-book/src/ch12-closures-and-iterators.md381
LOWpython-book/src/ch14-unsafe-rust-and-ffi.md61```rust
LOWpython-book/src/ch01-introduction-and-motivation.md301# COPY requirements.txt .
LOWasync-book/src/ch06-building-futures-by-hand.md61 } else {
LOW…k/src/ch06-dimensional-analysis-making-the-compiler.md181# #[derive(Debug, Clone, Copy, PartialEq, PartialOrd)]
LOW…k/src/ch06-dimensional-analysis-making-the-compiler.md281- Comparing Celsius against Volts is a **compile error**
LOW…k/src/ch15-const-fn-compile-time-correctness-proofs.md261
LOW…k/src/ch08-capability-mixins-compile-time-hardware-.md81```
LOW…k/src/ch08-capability-mixins-compile-time-hardware-.md181```rust,ignore
LOWtype-driven-correctness-book/src/ch12-exercises.md761 format!("{}: {}/{} passed", self.name, passed, total)
LOW…orrectness-book/src/ch18-redfish-server-walkthrough.md301// .name("PowerEdge R750".into())
LOWc-cpp-book/src/ch13-concurrency.md381// Output (order may vary):
Decorative Section Separators7 hits · 21 pts
SeverityFileLineSnippet
MEDIUMrust-patterns-book/src/ch02-traits-in-depth.md961// ── Bus abstractions (traits the hardware team provides) ──────────
MEDIUMrust-patterns-book/src/ch02-traits-in-depth.md1093// ── Concrete bus implementations (Linux platform) ────────────────
MEDIUMrust-patterns-book/src/ch02-traits-in-depth.md1125// ── Production platform — all four buses ─────────────────────────
MEDIUMrust-patterns-book/src/ch02-traits-in-depth.md1187 // ── Partial platform: only fan-related buses ─────────────────
MEDIUMxtask/src/main.rs99// ── build ────────────────────────────────────────────────────────────
MEDIUMxtask/src/main.rs404// ── serve ────────────────────────────────────────────────────────────
MEDIUMxtask/src/main.rs485// ── clean ────────────────────────────────────────────────────────────
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippet
CRITICALpython-book/src/ch08-crates-and-modules.md25from myproject.utils.helpers import format_name
Fake / Example Data5 hits · 5 pts
SeverityFileLineSnippet
LOWcsharp-book/RustBootstrapForCSharp.md5205 name: "John Doe".to_string(),
LOWcsharp-book/RustTrainingForCSharp.md1913 "John Doe".to_string(),
LOW…p-book/src/ch15-1-essential-crates-for-c-developers.md164 "John Doe".to_string(),
LOW…s-book/src/ch03-the-newtype-and-type-state-patterns.md56let email = Email::new("user@example.com").unwrap();
LOW…k/src/ch07-validated-boundaries-parse-dont-validate.md179 Some("Acme Corp".to_string()) // stub
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippet
LOWcsharp-book/RustBootstrapForCSharp.md116public class DataProcessor
LOWcsharp-book/RustBootstrapForCSharp.md4859public class DataProcessor
LOWcsharp-book/src/ch01-introduction-and-motivation.md25public class DataProcessor