AI Slop Code Risk Monitor

rust-windowing/winit

SlopCodeMonitor badge for rust-windowing/winit Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Window handling library in pure Rust

4.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for rust-windowing/winit, a Rust project with 6,242 GitHub stars. SynthScan examined 80,172 lines of code across 289 source files, recording 378 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 4.3 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

4.3
Adjusted Signal
4.3
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
6.2K
Stars
Rust
Language
80.2K
Lines of Code
289
Files
378
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 19.2/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 378 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

Are imports declared and package/API names verified? 0 finding(s).

Agent Over-Engineering Ratio 0.0/100 · LOW

Are wrappers, guards, and repeated structures necessary? 0 finding(s).

PR Review Velocity Impact 21.4/100 · LOW

Which changes need focused human review? 378 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 1MEDIUM 2LOW 375

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 378 distinct pattern matches across 4 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block374 hits · 327 pts
SeverityFileLineSnippetContext
LOWwinit-appkit/src/lib.rs1//! # macOS / AppKitCOMMENT
LOWwinit-appkit/src/lib.rs21//! use objc2::rc::Retained;COMMENT
LOWwinit-appkit/src/lib.rs41//! println!("open urls: {application:?}, {urls:?}");COMMENT
LOWwinit-appkit/src/lib.rs101use self::window::Window as AppKitWindow;COMMENT
LOWwinit-appkit/src/lib.rs141 ///COMMENT
LOWwinit-appkit/src/lib.rs161 /// ```COMMENT
LOWwinit-appkit/src/lib.rs181 fn set_borderless_game(&self, borderless_game: bool);COMMENT
LOWwinit-appkit/src/lib.rs201 /// A window marked as fullscreen auxiliary cannot itself enter (native) fullscreen;COMMENT
LOWwinit-appkit/src/lib.rs361#[non_exhaustive]COMMENT
LOWwinit-appkit/src/lib.rs501COMMENT
LOWwinit-appkit/src/lib.rs561 /// If unused, the Winit will honor the package manifest.COMMENT
LOWwinit-appkit/src/lib.rs581 /// Used to control whether a default menubar menu is created.COMMENT
LOWwinit-appkit/src/lib.rs681 Both,COMMENT
LOWwinit-appkit/src/lib.rs701/// [`Window::set_blur`]: winit_core::window::Window::set_blurCOMMENT
LOWwinit-appkit/src/event.rs481 // Follows what Chromium and Firefox do:COMMENT
LOWwinit-appkit/src/app_state.rs121 // NOTE: This notification will, globally, only be emitted once,COMMENT
LOWwinit-appkit/src/window_delegate.rs101 maximized: Cell<bool>,COMMENT
LOWwinit-appkit/src/window_delegate.rs321 }COMMENT
LOWwinit-appkit/src/window_delegate.rs741 if macos_attrs.fullsize_content_view {COMMENT
LOWwinit-appkit/src/window_delegate.rs1881 if let Some(Fullscreen::Exclusive(ref monitor, ref video_mode)) = fullscreen {COMMENT
LOWwinit-appkit/src/window_delegate.rs2061 // `CGWindowLevel` and `CGWindowLevelKey`.COMMENT
LOWwinit-appkit/src/app.rs61///COMMENT
LOWwinit-appkit/src/event_loop.rs661/// `windowWillClose:`, giving the application one last chance to handleCOMMENT
LOWwinit-appkit/src/view.rs601 // In the past (?), `mouseMoved:` events were not generated when theCOMMENT
LOWwinit-appkit/src/view.rs901 let this: Retained<Self> = unsafe { msg_send![super(this), init] };COMMENT
LOWwinit-appkit/src/view.rs921 // platforms.COMMENT
LOWwinit-appkit/src/view.rs1181 } else {COMMENT
LOWwinit-win32/src/raw_input.rs221 unsafe { MapVirtualKeyW(keyboard.VKey as u32, MAPVK_VK_TO_VSC_EX) as u16 }COMMENT
LOWwinit-win32/src/raw_input.rs241 // that there's going to be another event coming, from which we can extract theCOMMENT
LOWwinit-win32/src/raw_input.rs281 // wasn't active. The way this is exposed to applications by the system is thatCOMMENT
LOWwinit-win32/src/keyboard_layout.rs181COMMENT
LOWwinit-win32/src/keyboard_layout.rs301 // but map to the numpad.COMMENT
LOWwinit-win32/src/lib.rs41pub use self::monitor::{MonitorHandle, VideoModeHandle};COMMENT
LOWwinit-win32/src/lib.rs61 ///COMMENT
LOWwinit-win32/src/lib.rs121 ///COMMENT
LOWwinit-win32/src/lib.rs161}COMMENT
LOWwinit-win32/src/lib.rs181 /// unspecified, although explicitly not undefined, behavior.COMMENT
LOWwinit-win32/src/lib.rs201 /// # if false { // We can't test this partCOMMENT
LOWwinit-win32/src/lib.rs221 /// let msg = msg as *const MSG;COMMENT
LOWwinit-win32/src/lib.rs241 ///COMMENT
LOWwinit-win32/src/lib.rs261 /// Shows or hides the background drop shadow for undecorated windows.COMMENT
LOWwinit-win32/src/lib.rs281 /// Sets the color of the window title.COMMENT
LOWwinit-win32/src/lib.rs301 ///COMMENT
LOWwinit-win32/src/lib.rs321 ///COMMENT
LOWwinit-win32/src/lib.rs441 /// This function wraps anything that implements `Borrow<Window>` into a structure thatCOMMENT
LOWwinit-win32/src/lib.rs501 }COMMENT
LOWwinit-win32/src/lib.rs521 /// [`WindowAttributes::with_parent_window`]: winit_core::window::WindowAttributes::with_parent_windowCOMMENT
LOWwinit-win32/src/lib.rs661 fn persistent_identifier(&self) -> Option<String> {COMMENT
LOWwinit-win32/src/lib.rs701 /// The valid `ordinal` values range from 1 to [`u16::MAX`] (inclusive). The value `0` is anCOMMENT
LOWwinit-win32/src/lib.rs721 /// icon size from the file.COMMENT
LOWwinit-win32/src/lib.rs741 /// [`from_resource`]: Self::from_resourceCOMMENT
LOWwinit-win32/src/data_transfer.rs1781/// during the drag instead of the default no-image cursor.COMMENT
LOWwinit-win32/src/keyboard.rs41}COMMENT
LOWwinit-win32/src/keyboard.rs321 ($vk:expr) => {COMMENT
LOWwinit-win32/src/event_loop.rs321 PumpStatus::ContinueCOMMENT
LOWwinit-win32/src/event_loop.rs681/// developer could spin off any other threads inside of the main entrypoint in order to emulate theCOMMENT
LOWwinit-win32/src/event_loop.rs761 // CREATE_WAITABLE_TIMER_HIGH_RESOLUTION is supported only afterCOMMENT
LOWwinit-win32/src/event_loop.rs881unsafe impl Sync for EventLoopThreadExecutor {}COMMENT
LOWwinit-win32/src/event_loop.rs981 // correct ID. Therefore a compare-and-swap operation here (or really anyCOMMENT
LOWwinit-win32/src/event_loop.rs1301 // Extend the client area to cover the whole non-client area.COMMENT
314 more matches not shown…
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHwinit-appkit/src/window_delegate.rs330 /// will be failed. In this implementation, we will try again by usingCOMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMwinit-core/src/window.rs673 /// the most robust way to track the DPI you need to use to draw.COMMENT
MEDIUMwinit-wayland/src/types/wp_tablet_input_v2.rs286 // NOTE: even though we don't utilize serialsCOMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWwinit-appkit/src/app.rs69/// NOTE: This function assumes that the passed in application object is the one returned fromCOMMENT