Repository Analysis

tauri-apps/tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.

3.4 Likely human-written View on GitHub
3.4
Adjusted Score
3.4
Raw Score
100%
Time Factor
2026-05-29
Last Push
107,259
Stars
Rust
Language
166,689
Lines of Code
738
Files
627
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 5HIGH 0MEDIUM 3LOW 619

Pattern Findings

627 matches across 6 categories. Click a row to expand file-level details.

Over-Commented Block603 hits · 498 pts
SeverityFileLineSnippet
LOWbench/src/utils.rs1// Copyright 2019-2024 Tauri Programme within The Commons Conservancy
LOWcrates/tauri-codegen/src/embedded_assets.rs61
LOWcrates/tauri-runtime-wry/src/window/mod.rs21 /// Enable or disable the window
LOWcrates/tauri-runtime/src/monitor.rs1// Copyright 2019-2024 Tauri Programme within The Commons Conservancy
LOWcrates/tauri-runtime/src/lib.rs81#[serde(tag = "type")]
LOWcrates/tauri-runtime/src/lib.rs121 /// Failed to create webview.
LOWcrates/tauri-runtime/src/lib.rs141 #[error("invalid icon: {0}")]
LOWcrates/tauri-runtime/src/lib.rs221 /// Emitted when all of the event loop's input events have been processed and redraw processing is about to begin.
LOWcrates/tauri-runtime/src/lib.rs341 /// Change the device event filter mode.
LOWcrates/tauri-runtime/src/lib.rs481 #[cfg_attr(docsrs, doc(cfg(target_os = "macos")))]
LOWcrates/tauri-runtime/src/lib.rs601 ) -> Result<()>;
LOWcrates/tauri-runtime/src/lib.rs621 /// Set a cookie for the webview.
LOWcrates/tauri-runtime/src/lib.rs701 /// Gets the window's native maximize button state.
LOWcrates/tauri-runtime/src/lib.rs721
LOWcrates/tauri-runtime/src/lib.rs821 fn set_enabled(&self, enabled: bool) -> Result<()>;
LOWcrates/tauri-runtime/src/lib.rs941
LOWcrates/tauri-runtime/src/lib.rs961 /// - **iOS:** iOS expects i32, if the value is larger than i32::MAX, it will be clamped to i32::MAX.
LOWcrates/tauri-runtime/src/lib.rs981 ///
LOWcrates/tauri-runtime/src/window.rs41 Destroyed,
LOWcrates/tauri-runtime/src/window.rs61 /// The system window theme has changed.
LOWcrates/tauri-runtime/src/window.rs81 /// - **iOS**: This is triggered by `applicationWillEnterForeground` method of the UIApplicationDelegate.
LOWcrates/tauri-runtime/src/window.rs121/// Describes the appearance of the mouse cursor.
LOWcrates/tauri-runtime/src/window.rs241 ///
LOWcrates/tauri-runtime/src/window.rs281
LOWcrates/tauri-runtime/src/window.rs301 /// ## Platform-specific
LOWcrates/tauri-runtime/src/window.rs321
LOWcrates/tauri-runtime/src/window.rs401 /// Set the window background color.
LOWcrates/tauri-runtime/src/window.rs421 /// - The system automatically destroys an owned window when its owner is destroyed.
LOWcrates/tauri-runtime/src/window.rs461
LOWcrates/tauri-runtime/src/window.rs501 /// The name of the activity to create for this webview window.
LOWcrates/tauri-runtime/src/webview.rs101 target_os = "netbsd",
LOWcrates/tauri-runtime/src/webview.rs161/// Response for the new window request handler.
LOWcrates/tauri-runtime/src/webview.rs181/// - **Windows**: This option must be given the same value for all webviews that target the same data directory.
LOWcrates/tauri-runtime/src/webview.rs381 ///
LOWcrates/tauri-runtime/src/webview.rs561 }
LOWcrates/tauri-runtime/src/webview.rs581 pub fn initialization_script(mut self, script: impl Into<String>) -> Self {
LOWcrates/tauri-runtime/src/webview.rs701 /// - **MacOS / Linux**: Injects a polyfill that zooms in and out with `ctrl/command` + `-/=`,
LOWcrates/tauri-runtime/src/webview.rs721 }
LOWcrates/tauri-runtime/src/webview.rs741 ///
LOWcrates/tauri-runtime/src/webview.rs761 self
LOWcrates/tauri-runtime/src/webview.rs781 /// See https://docs.rs/objc2-web-kit/latest/objc2_web_kit/struct.WKWebView.html#method.allowsLinkPreview
LOWcrates/tauri-runtime/src/webview.rs801 /// - **Linux / Windows / Android**: Unsupported. Workarounds like a pending WebLock transaction might suffice.
LOWcrates/tauri-runtime/src/webview.rs821 /// and does nothing on older versions.
LOWcrates/tauri-runtime/src/webview.rs841 /// ## Platform-specific
LOWcrates/tauri-build/src/lib.rs221 /// ```text
LOWcrates/tauri-build/src/lib.rs281 .replace(window_icon_path.as_ref().into());
LOWcrates/tauri-build/src/lib.rs301 /// version="6.0.0.0"
LOWcrates/tauri-build/src/lib.rs321 /// <requestedPrivileges>
LOWcrates/tauri-build/src/lib.rs441///
LOWcrates/tauri-build/src/codegen/context.rs41 /// Set the path to the `tauri.conf.json` (relative to the package's directory).
LOWcrates/tauri-plugin/src/runtime.rs1// Copyright 2019-2024 Tauri Programme within The Commons Conservancy
LOWcrates/tauri-plugin/src/lib.rs21#[cfg(feature = "runtime")]
LOWcrates/tauri/src/error.rs41 #[error("a webview with label `{0}` already exists")]
LOWcrates/tauri/src/error.rs61 /// Encountered an error in the setup hook,
LOWcrates/tauri/src/error.rs81 /// Invalid glob pattern.
LOWcrates/tauri/src/error.rs101 Menu(#[from] muda::Error),
LOWcrates/tauri/src/error.rs121 NoExtension,
LOWcrates/tauri/src/error.rs141 BadResourceId(crate::resources::ResourceId),
LOWcrates/tauri/src/lib.rs1// Copyright 2019-2024 Tauri Programme within The Commons Conservancy
LOWcrates/tauri/src/lib.rs21//! - **linux-libxdo**: Enables linking to libxdo which enables Cut, Copy, Paste and SelectAll menu items to work on Lin
543 more matches not shown…
Hallucination Indicators5 hits · 50 pts
SeverityFileLineSnippet
CRITICALcrates/tauri/src/protocol/tauri.rs141 .add_configured_headers(manager.config.app.security.headers.as_ref())
CRITICALcrates/tauri/src/protocol/isolation.rs59 .add_configured_headers(manager.config.app.security.headers.as_ref())
CRITICALcrates/tauri/src/tray/mod.rs644 let mut icons = self.app_handle.manager.tray.icons.lock().unwrap();
CRITICALcrates/tauri/src/manager/mod.rs371 self.config.app.security.csp.clone()
CRITICALcrates/tauri/src/manager/mod.rs379 .or_else(|| self.config.app.security.csp.clone())
Slop Phrases12 hits · 15 pts
SeverityFileLineSnippet
LOWcrates/tauri/src/ipc/format_callback.rs212 r#"{"test":"don\\🚀🐱‍👤\\'t forget to escape me!🚀🐱‍👤","te🚀🐱‍👤st2":"don't forget to escape me!","test3":"\\🚀🐱‍👤\\\\''
LOWcrates/tauri/src/ipc/format_callback.rs212 r#"{"test":"don\\🚀🐱‍👤\\'t forget to escape me!🚀🐱‍👤","te🚀🐱‍👤st2":"don't forget to escape me!","test3":"\\🚀🐱‍👤\\\\''
LOWcrates/tauri/src/ipc/format_callback.rs296 r#"{"test":"don\\🚀🐱‍👤\\'t forget to escape me!🚀🐱‍👤","te🚀🐱‍👤st2":"don't forget to escape me!","test3":"\\🚀🐱‍👤\\\\''
LOWcrates/tauri/src/ipc/format_callback.rs296 r#"{"test":"don\\🚀🐱‍👤\\'t forget to escape me!🚀🐱‍👤","te🚀🐱‍👤st2":"don't forget to escape me!","test3":"\\🚀🐱‍👤\\\\''
MEDIUMcrates/tauri-cli/config.schema.json169 "description": "The app windows configuration.\n\n ## Example:\n\n To create a window at app startup\n\n ```js
LOWcrates/tauri-cli/config.schema.json2219 "description": "A list of—either absolute or relative—paths to binaries to embed with your application.\n\n No
LOWcrates/tauri-cli/tauri.config.schema.json1698 "description": "A list of—either absolute or relative—paths to binaries to embed with your application.\n\n No
LOWcrates/tauri-cli/schema.json1693 "description": "A list of—either absolute or relative—paths to binaries to embed with your application.\n\n No
LOWcrates/tauri-utils/src/config.rs1670 /// so don't forget to provide binaries for all targeted platforms.
LOWcrates/tauri-utils/src/config_v1/mod.rs760 /// so don't forget to provide binaries for all targeted platforms.
MEDIUM…ates/tauri-schema-generator/schemas/config.schema.json169 "description": "The app windows configuration.\n\n ## Example:\n\n To create a window at app startup\n\n ```js
LOW…ates/tauri-schema-generator/schemas/config.schema.json2219 "description": "A list of—either absolute or relative—paths to binaries to embed with your application.\n\n No
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippet
LOWcrates/tauri-cli/src/interface/rust.rs782 // to add more modes, we need to check if the updater relaunch makes sense
LOWcrates/tauri-cli/src/interface/rust/cargo_config.rs107/// The purpose of this function is to aid in the transition to using
LOWcrates/tauri-utils/src/config_v1/mod.rs2481 // to add more modes, we need to check if the updater relaunch makes sense
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMcrates/tauri-utils/src/assets.rs46 // TODO: change this to utilize `Cow` to prevent allocating an intermediate `PathBuf` when not necessary
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippet
LOWexamples/api/src/views/Menu.svelte21 async function createSubmenuWithNativeIcon() {
LOWexamples/api/src/views/Menu.svelte29 async function createSubmenuWithImageIcon() {
LOWpackages/api/src/app.ts160async function fetchDataStoreIdentifiers(): Promise<DataStoreIdentifier[]> {