Repository Analysis

iced-rs/iced

A cross-platform GUI library for Rust, inspired by Elm

3.5 Likely human-written View on GitHub
3.5
Adjusted Score
3.5
Raw Score
100%
Time Factor
2026-05-28
Last Push
30,604
Stars
Rust
Language
99,381
Lines of Code
501
Files
362
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 11LOW 351

Pattern Findings

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

Over-Commented Block346 hits · 312 pts
SeverityFileLineSnippet
LOWcore/src/element.rs41 pub fn as_widget_mut(&mut self) -> &mut dyn Widget<Message, Theme, Renderer> {
LOWcore/src/element.rs61 /// use counter::Counter;
LOWcore/src/element.rs81 /// Counter(usize, counter::Message)
LOWcore/src/element.rs101 /// # #[derive(Debug, Clone, Copy)]
LOWcore/src/element.rs121 /// }
LOWcore/src/element.rs141 /// }),
LOWcore/src/element.rs161 /// #
LOWcore/src/font.rs81
LOWcore/src/renderer.rs61 );
LOWcore/src/length.rs1use crate::Pixels;
LOWcore/src/widget.rs21/// If you want to build your own widgets, you will need to implement this
LOWcore/src/backend.rs1//! Graphical backends are designed to aid in rendering computer graphics to a monitor.
LOWcore/src/backend.rs121}
LOWcore/src/color.rs1//! Manage colors in different color spaces.
LOWcore/src/color.rs381}
LOWcore/src/lib.rs101
LOWcore/src/lib.rs121 /// # let element: Option<()> = Some(());
LOWcore/src/event.rs41pub enum Status {
LOWcore/src/border.rs21/// #
LOWcore/src/image.rs81 Path(Id, PathBuf),
LOWcore/src/image.rs221/// A memory allocation of a [`Handle`], often in GPU memory.
LOWcore/src/image.rs281
LOWcore/src/image.rs301 ///
LOWcore/src/image.rs321 /// The image file was not found.
LOWcore/src/padding.rs1//! Space stuff around the perimeter.
LOWcore/src/padding.rs21/// # struct Widget;
LOWcore/src/content_fit.rs1//! Control the fit of some content (like an image) within a space.
LOWcore/src/content_fit.rs21 /// within the window. This won't distort the image or crop/hide any edges,
LOWcore/src/content_fit.rs41 Cover,
LOWcore/src/rotation.rs1//! Control the rotation of some content (like an image) within a space.
LOWcore/src/text.rs141 }
LOWcore/src/text.rs161 ///
LOWcore/src/text.rs201 Word,
LOWcore/src/text.rs301 /// No difference.
LOWcore/src/text.rs341 /// [`ICON_FONT`]: Self::ICON_FONT
LOWcore/src/input_method.rs1//! Listen to input method events.
LOWcore/src/input_method.rs81 ///
LOWcore/src/input_method.rs101 /// preedit: Some(Preedit { content: "2".to_owned(), selection: None, text_size: None }),
LOWcore/src/input_method.rs141 preedit: preedit.as_ref().map(Preedit::to_owned),
LOWcore/src/input_method.rs161 /// [`Commit`][Self::Commit] events. You should also start performing IME related requests
LOWcore/src/input_method.rs181 /// Notifies when the IME was disabled.
LOWcore/src/settings.rs21 /// By default, it uses [`Family::SansSerif`](crate::font::Family::SansSerif).
LOWcore/src/widget/text.rs1//! Text widgets display information through writing.
LOWcore/src/widget/text.rs41/// # pub type Element<'a, Message> = iced_core::Element<'a, Message, iced_core::Theme, ()>;
LOWcore/src/layout/flex.rs1//! Distribute elements using a flex-based layout.
LOWcore/src/window/user_attention.rs1/// The type of user attention to request.
LOWcore/src/window/event.rs1use crate::time::Instant;
LOWcore/src/window/event.rs41 /// The user has requested for the window to close.
LOWcore/src/window/event.rs61 ///
LOWcore/src/window/position.rs1use crate::{Point, Size};
LOWcore/src/window/level.rs1/// A window level groups windows with respect to their z-position.
LOWcore/src/window/settings.rs61
LOWcore/src/window/settings.rs81 pub blur: bool,
LOWcore/src/window/settings/windows.rs1//! Platform specific settings for Windows.
LOWcore/src/window/settings/windows.rs41 /// Let the system decide when to round window corners.
LOWcore/src/window/settings/linux.rs1//! Platform specific settings for Linux.
LOWcore/src/keyboard/key.rs1//! Identify keyboard keys.
LOWcore/src/keyboard/key.rs41 ///
LOWcore/src/keyboard/key.rs121 fn from(named: Named) -> Self {
LOWcore/src/keyboard/key.rs141 /// This key is used enable the ISO Level 3 shift modifier (the standard `Shift` key is the
286 more matches not shown…
AI Slop Vocabulary10 hits · 30 pts
SeverityFileLineSnippet
MEDIUMcore/src/shell.rs11/// A [`Widget`] can leverage a [`Shell`] to trigger changes in an application,
MEDIUMcore/src/padding.rs6/// You can leverage the `From` trait to build [`Padding`] conveniently:
MEDIUMcore/src/text.rs50 /// calculation of the [`Paragraph`] and leverage metrics hinting.
MEDIUMfutures/src/subscription.rs137 /// You can leverage this helper to create a [`Subscription`] that spawns
MEDIUMwidget/src/themer.rs15/// This widget can be useful to leverage multiple `Theme`
MEDIUMtest/src/lib.rs38//! In this case, we leverage the [`Selector`] implementation of `&str`, which selects a widget by the text it contains.
MEDIUMwgpu/src/primitive.rs43 /// If you have complex composition needs, then you can leverage
MEDIUMsrc/lib.rs377//! A common pattern is to leverage this composability to split an
MEDIUMsrc/lib.rs470//! seamless.
MEDIUMsrc/time.rs19/// You may care about purity if you want to leverage the `time-travel`
Fake / Example Data4 hits · 6 pts
SeverityFileLineSnippet
LOWbenches/ipsum.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur at elit mollis, dictum nunc non, tempus metus. Sed ia
LOWbenches/ipsum.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur at elit mollis, dictum nunc non, tempus metus. Sed ia
LOWbenches/ipsum.txt3Cras ullamcorper tincidunt tellus non tempor. Integer pulvinar turpis quam, nec pharetra purus egestas non. Vivamus sed
LOWbenches/ipsum.txt3Cras ullamcorper tincidunt tellus non tempor. Integer pulvinar turpis quam, nec pharetra purus egestas non. Vivamus sed
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMfutures/src/subscription.rs136 /// # Creating an asynchronous worker with bidirectional communication
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippet
LOWdocs/release_summary.py30