AI Slop Code RIsk Monitor

rust-windowing/winit

Window handling library in pure Rust

4.3 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for rust-windowing/winit, a Rust project with 6,194 GitHub stars. SynthScan examined 77,856 lines of code across 286 source files, recording 371 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-06
Last Push
6.2K
Stars
Rust
Language
77.9K
Lines of Code
286
Files
371
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 19.3/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 371 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.6/100 · LOW

Which changes need focused human review? 371 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 368

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 371 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 Block367 hits · 319 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/window_delegate.rs101 /// Whether the window is showing decorations.COMMENT
LOWwinit-appkit/src/window_delegate.rs321 self.ivars().in_fullscreen_transition.set(false);COMMENT
LOWwinit-appkit/src/window_delegate.rs761 }COMMENT
LOWwinit-appkit/src/window_delegate.rs1901 }COMMENT
LOWwinit-appkit/src/app.rs61///COMMENT
LOWwinit-appkit/src/view.rs161 impl WinitView {COMMENT
LOWwinit-appkit/src/view.rs581 is_synthetic: false,COMMENT
LOWwinit-appkit/src/view.rs841 option_as_alt: Cell::new(option_as_alt),COMMENT
LOWwinit-appkit/src/view.rs861 // `ActiveAlways` indicates we want to receive events when the window is notCOMMENT
LOWwinit-appkit/src/view.rs1041 self.ivars().modifiers.set(current_modifiers);COMMENT
LOWwinit-win32/src/dnd.rs1541}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/keyboard.rs41}COMMENT
LOWwinit-win32/src/keyboard.rs321 ($vk:expr) => {COMMENT
LOWwinit-win32/src/event_loop.rs321 /// Doesn't peek messages itself.COMMENT
LOWwinit-win32/src/event_loop.rs341 // Before we potentially exit, make sure to consistently emit an event for the wake upCOMMENT
LOWwinit-win32/src/event_loop.rs641/// Windows has no real API to check if the current executing thread is the "main thread", unlikeCOMMENT
LOWwinit-win32/src/event_loop.rs721 ptr::null(),COMMENT
LOWwinit-win32/src/event_loop.rs1261 let monitor = unsafe { MonitorFromRect(&params.rgrc[0], MONITOR_DEFAULTTONULL) };COMMENT
LOWwinit-win32/src/event_loop.rs1301COMMENT
LOWwinit-win32/src/event_loop/runner.rs461 }COMMENT
LOWwinit-win32/src/event_loop/runner.rs481 /// ^ |COMMENT
307 more matches not shown…
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHwinit-appkit/src/window_delegate.rs333 /// 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