Repository Analysis

google/comprehensive-rust

This is the Rust course used by the Android team at Google. It provides you the material to quickly teach Rust.

2.4 Likely human-written View on GitHub
2.4
Adjusted Score
2.4
Raw Score
100%
Time Factor
2026-05-25
Last Push
33,011
Stars
Rust
Language
52,120
Lines of Code
768
Files
111
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 6LOW 105

Pattern Findings

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

Over-Commented Block104 hits · 104 pts
SeverityFileLineSnippet
LOWmdbook-exerciser/src/lib.rs1// Copyright 2023 Google LLC
LOWmdbook-exerciser/src/main.rs1// Copyright 2023 Google LLC
LOWtests/wdio.conf.ts1import { env } from "node:process";
LOWtests/wdio.conf.ts21 // process simply enclose them in an array within the specs array.
LOWtests/wdio.conf.ts41 // say you have 3 different capabilities (Chrome, Firefox, and Safari) and you have
LOWtests/wdio.conf.ts81 //
LOWtests/wdio.conf.ts101 bail: 0,
LOWtests/wdio.conf.ts141
LOWtests/src/slides/slides.list.ts1// to enable local testing for slide size checks please (re)generate this file by executing:
LOWthird_party/cxx/book/snippets.rs141
LOWtheme/speaker-notes.js1// Copyright 2023 Google LLC
LOW.github/workflows/check-msgid-changes.py1# Copyright 2023 Google LLC
LOW.github/workflows/check-redirects.py1# Copyright 2026 Google LLC
LOW.github/workflows/build.sh1#!/usr/bin/env bash
LOWxtask/src/main.rs1// Copyright 2023 Google LLC
LOWmdbook-course/src/replacements.rs1// Copyright 2023 Google LLC
LOWmdbook-course/src/frontmatter.rs1// Copyright 2023 Google LLC
LOWmdbook-course/src/lib.rs1// Copyright 2023 Google LLC
LOWmdbook-course/src/course.rs1// Copyright 2023 Google LLC
LOWmdbook-course/src/course.rs21//! Session -- a block of instructional time (typically morning or afternoon)
LOWmdbook-course/src/markdown.rs1// Copyright 2023 Google LLC
LOWmdbook-course/src/timing_info.rs1// Copyright 2023 Google LLC
LOWmdbook-course/src/bin/course-schedule.rs1// Copyright 2023 Google LLC
LOWmdbook-course/src/bin/course-content.rs1// Copyright 2024 Google LLC
LOWmdbook-course/src/bin/mdbook-course.rs1// Copyright 2023 Google LLC
LOWsrc/generics/exercise.rs1// Copyright 2023 Google LLC
LOWsrc/methods-and-traits/exercise.rs1// Copyright 2024 Google LLC
LOWsrc/error-handling/exercise.rs1// Copyright 2023 Google LLC
LOWsrc/borrowing/exercise.md21```rust,editable,compile_fail
LOWsrc/borrowing/exercise.rs1// Copyright 2026 Google LLC
LOWsrc/types-and-values/exercise.rs1// Copyright 2023 Google LLC
LOWsrc/references/exercise.rs1// Copyright 2022 Google LLC
LOWsrc/tuples-and-arrays/exercise.rs1// Copyright 2022 Google LLC
LOW…/bare-metal/useful-crates/zerocopy-example/src/main.rs1// Copyright 2023 Google LLC
LOW…bare-metal/useful-crates/allocator-example/src/main.rs1// Copyright 2023 Google LLC
LOWsrc/bare-metal/aps/examples/src/logger.rs1// Copyright 2023 Google LLC
LOWsrc/bare-metal/aps/examples/src/main_improved.rs1// Copyright 2023 Google LLC
LOWsrc/bare-metal/aps/examples/src/main_logger.rs1// Copyright 2023 Google LLC
LOWsrc/bare-metal/aps/examples/src/main_minimal.rs1// Copyright 2023 Google LLC
LOWsrc/bare-metal/aps/examples/src/main_safemmio.rs1// Copyright 2023 Google LLC
LOWsrc/bare-metal/aps/examples/src/main_psci.rs1// Copyright 2023 Google LLC
LOWsrc/bare-metal/aps/examples/src/exceptions_rt.rs1// Copyright 2026 Google LLC
LOWsrc/bare-metal/aps/examples/src/pl011_minimal.rs1// Copyright 2023 Google LLC
LOWsrc/bare-metal/aps/examples/src/pl011_minimal.rs21/// Minimal driver for a PL011 UART.
LOWsrc/bare-metal/aps/examples/src/exceptions.rs1// Copyright 2023 Google LLC
LOWsrc/bare-metal/aps/examples/src/asm.rs1// Copyright 2025 Google LLC
LOWsrc/bare-metal/aps/examples/src/pl011.rs1// Copyright 2023 Google LLC
LOWsrc/bare-metal/aps/examples/src/main_rt.rs1// Copyright 2025 Google LLC
LOWsrc/bare-metal/aps/examples/src/pl011_struct.rs1// Copyright 2023 Google LLC
LOWsrc/bare-metal/microcontrollers/examples/src/bin/pac.rs1// Copyright 2023 Google LLC
LOWsrc/bare-metal/microcontrollers/examples/src/bin/hal.rs1// Copyright 2023 Google LLC
LOW…e-metal/microcontrollers/examples/src/bin/typestate.rs1// Copyright 2023 Google LLC
LOW…c/bare-metal/microcontrollers/examples/src/bin/mmio.rs1// Copyright 2023 Google LLC
LOW…tal/microcontrollers/examples/src/bin/board_support.rs1// Copyright 2023 Google LLC
LOW…are-metal/microcontrollers/examples/src/bin/minimal.rs1// Copyright 2023 Google LLC
LOW…al/microcontrollers/examples/src/bin/interrupts/mod.rs1// Copyright 2023 Google LLC
LOWsrc/bare-metal/alloc-example/src/main.rs1// Copyright 2023 Google LLC
LOWsrc/user-defined-types/exercise.rs1// Copyright 2023 Google LLC
LOWsrc/std-traits/exercise.rs1// Copyright 2023 Google LLC
LOW…i-design/meaningful-doc-comments/name-drop-signpost.md21/// [leader]: https://www.loc.gov/marc/bibliographic/bdleader.html
44 more matches not shown…
AI Slop Vocabulary2 hits · 9 pts
SeverityFileLineSnippet
MEDIUMsrc/android/build_all.sh33# mkdir comprehensive-rust
MEDIUMsrc/android/build_all.sh34# sudo mount -o bind ../path/to/comprehensive-rust/src comprehensive-rust
Excessive Try-Catch Wrapping3 hits · 6 pts
SeverityFileLineSnippet
MEDIUM.github/workflows/check-redirects.py48 print(f"Error: {repo_root} is not a directory")
MEDIUM.github/workflows/check-redirects.py60 print(f"Error running git diff: {e}")
MEDIUM.github/workflows/check-redirects.py74 print(f"Error: {book_toml_path} not found in {repo_root}")
Slop Phrases1 hit · 4 pts
SeverityFileLineSnippet
MEDIUMsrc/android/build_all.sh30# you can use a bind mount:
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWsrc/android/build_all.sh17# How to use