Repository Analysis

wezterm/wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust

1.1 Likely human-written View on GitHub
1.1
Adjusted Score
1.1
Raw Score
100%
Time Factor
2026-05-01
Last Push
26,358
Stars
Rust
Language
527,416
Lines of Code
1643
Files
461
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 5MEDIUM 39LOW 417

Pattern Findings

461 matches across 11 categories. Click a row to expand file-level details.

Over-Commented Block389 hits · 388 pts
SeverityFileLineSnippet
LOWdeny.toml1# This template contains all of the possible sections and their default values
LOWdeny.toml21# `target_family = "unix"` configuration, that only having windows targets in
LOWdeny.toml41#exclude = []
LOWdeny.toml61
LOWdeny.toml101 "CC0-1.0",
LOWdeny.toml121# licensing information
LOWdeny.toml141# visit https://doc.rust-lang.org/cargo/reference/manifest.html#the-publish-field.
LOWdeny.toml161# * simplest-path - The path to the version with the fewest edges is highlighted
LOWdeny.toml181 # Wrapper crates can optionally be specified to allow the crate when it
LOWdeny.toml201# "rustls-tls-webpki-roots",
LOWdeny.toml221]
LOWwezterm-font/src/locator/font_config.rs161 }
LOWwezterm-font/src/shaper/harfbuzz.rs301 for c in s.chars() {
LOWwezterm-font/src/shaper/harfbuzz.rs341 }
LOWwezterm-font/src/shaper/harfbuzz.rs361 // * Dedup
LOWwezterm-font/src/shaper/harfbuzz.rs421 // This logic essentially merges `info` into `prior` by
LOWwezterm-font/src/shaper/mod.rs21 /// into a single glyph, such as in `!=` and other ligatures.
LOWmux/src/localpane.rs61/// This is a bit horrible; it can take 700us to tcgetpgrp, so if we have
LOWmux/src/renderable.rs21
LOWmux/src/tab.rs601 self.inner.lock().get_size()
LOWmux/src/tab.rs621 /// tree model.
LOWmux/src/pane.rs181 /// Given a range of lines, return the subset of those lines that
LOWmux/src/pane.rs341
LOWmux/src/pane.rs361}
LOWmux/src/ssh_agent.rs21/// to decide whether the client process is allowed to consume
LOWmux/src/ssh_agent.rs141 // Take first one with auth sock -> that's the path
LOWwezterm-gui-subcommands/src/lib.rs41
LOWwezterm-gui-subcommands/src/lib.rs61 #[arg(short = 'e', hide = true)]
LOWwezterm-gui-subcommands/src/lib.rs81 /// --position 10,20 to set x=10, y=20 in screen coordinates
LOWwezterm-gui-subcommands/src/lib.rs101 #[arg(long, requires = "domain")]
LOWwezterm-gui-subcommands/src/lib.rs121
LOWwezterm-gui-subcommands/src/lib.rs141 /// the process.
LOWwezterm-gui-subcommands/src/lib.rs161 #[arg(long, verbatim_doc_comment)]
LOWwezterm-gui-subcommands/src/lib.rs181 /// This changes the class for all windows spawned by this
LOWwezterm-gui-subcommands/src/lib.rs201}
LOWwezterm-gui-subcommands/src/lib.rs221 /// authentication dialogs.
LOWlua-api-crates/color-funcs/src/image_colors.rs1//! This module analyzes an image to determine a set of
LOWlua-api-crates/time-funcs/src/lib.rs61 /// The name of the registry entry that will resolve to
LOWtest-data/emoji-test.txt1# emoji-test.txt
LOWtest-data/emoji-test.txt21# unqualified — a unqualified emoji (See ED-19 in UTS #51)
LOWtest-data/braille-all-chars.txt1// [⡪] (Single one)
LOWtest-data/braille-all-chars.txt21// ⣐⣑⣒⣓⣔⣕⣖⣗⣘⣙⣚⣛⣜⣝⣞⣟
LOWtest-data/light-lines-vs-heavy-lines.txt1// [─] BOX DRAWINGS LIGHT HORIZONTAL
LOWtest-data/light-lines-vs-heavy-lines.txt21// [┎] BOX DRAWINGS DOWN HEAVY AND RIGHT LIGHT
LOWtest-data/light-lines-vs-heavy-lines.txt41// [┞] BOX DRAWINGS UP HEAVY and RIGHT DOWN LIGHT
LOWtest-data/light-lines-vs-heavy-lines.txt61// [┱] BOX DRAWINGS RIGHT LIGHT AND LEFT DOWN HEAVY
LOWtest-data/light-lines-vs-heavy-lines.txt81// [╃] BOX DRAWINGS LEFT UP HEAVY and RIGHT DOWN LIGHT
LOWtest-data/light-lines-vs-heavy-lines.txt101// [╸] BOX DRAWINGS HEAVY LEFT
LOWlicenses/ANGLE.md1// Copyright 2018 The ANGLE Project Authors.
LOWlicenses/ANGLE.md21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
LOWpty/examples/narrow.rs41 });
LOWpty/examples/whoami_async.rs21 // Move the slave to another thread to block and spawn a
LOWpty/examples/whoami.rs41 // Obtain the writer.
LOWpty/src/unix.rs141/// On Linux, gnome/mutter leak shell extension fds to wezterm too, so we
LOWpty/src/lib.rs1//! This crate provides a cross platform API for working with the
LOWpty/src/lib.rs21//! // that matches the size of the selected font. That
LOWpty/src/lib.rs101 /// It is invalid to take the writer more than once.
LOWpty/src/lib.rs121 #[cfg(unix)]
LOWconfig/src/background.rs221#[derive(Debug, Copy, Clone, FromDynamic, ToDynamic, PartialEq, Eq)]
LOWconfig/src/font.rs221#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Hash, FromDynamic, ToDynamic)]
329 more matches not shown…
Decorative Section Separators32 hits · 104 pts
SeverityFileLineSnippet
MEDIUMbidi/data/DerivedBidiClass.txt2452# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt2460# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt2468# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt2476# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt2484# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt2492# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt2500# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt2508# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt2516# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt10# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt46# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt1087# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt1258# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt1278# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt1295# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt1334# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt1349# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt1369# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt1381# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt1391# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt1405# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt1918# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt1962# ================================================
MEDIUMbidi/data/DerivedBidiClass.txt2308# ================================================
MEDIUMwezterm-gui/src/customglyph.rs19 // ╭──────╮
MEDIUMwezterm-gui/src/customglyph.rs26 // ╰──────╯
MEDIUMwezterm-char-props/data/emoji-data.txt20# ================================================
MEDIUMwezterm-char-props/data/emoji-data.txt411# ================================================
MEDIUMwezterm-char-props/data/emoji-data.txt680# ================================================
MEDIUMwezterm-char-props/data/emoji-data.txt689# ================================================
MEDIUMwezterm-char-props/data/emoji-data.txt744# ================================================
MEDIUMwezterm-char-props/data/emoji-data.txt762# ================================================
Cross-Language Confusion5 hits · 19 pts
SeverityFileLineSnippet
HIGHci/generate-workflows.py369if ! command -v rustup &>/dev/null; then
HIGHci/generate-workflows.py720 'cd flathub && gh pr create --fill --body "PR automatically created by release automation in the wezterm
HIGHci/generate-workflows.py742 "cd winget-pkgs && git config user.email wez@wezfurlong.org",
HIGHci/generate-workflows.py746 "cd winget-pkgs && git config user.name 'Wez Furlong'",
HIGHci/generate-workflows.py754 'cd winget-pkgs && gh pr create --fill --body "PR automatically created by release automation in the
Verbosity Indicators9 hits · 14 pts
SeverityFileLineSnippet
LOWluahelper/src/enumctor.rs134 // Step 1: see if this is a unit variant.
LOWluahelper/src/enumctor.rs146 // Step 2: see if this is a valid variant, and whether we can
LOWdeps/cairo/cairo/src/cairo-scaled-font.c281 * The purpose of this function is to allow the user to set a
LOWdeps/cairo/cairo/src/cairo-region.c136 * The purpose of this function is to allow the user to set a
LOWdeps/cairo/cairo/src/cairo-error.c58 * The purpose of this function is to allow the user to set a
LOWdeps/cairo/cairo/src/cairo-surface.c179 * The purpose of this function is to allow the user to set a
LOWdeps/cairo/cairo/src/cairo-pattern.c179 * The purpose of this function is to allow the user to set a
LOWdeps/cairo/cairo/src/cairo.c392 * The purpose of this function is to allow the user to set a
LOWdeps/cairo/cairo/src/cairo-ps-surface.c2411/* PS Output - this section handles output of the parts of the recording
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippet
MEDIUMci/make-winget-pr.sh19# Create the directory structure
MEDIUMassets/shell-integration/wezterm.sh177# This function is installed as part of the PROMPT_COMMAND;
MEDIUMassets/shell-integration/wezterm.sh185# This function is installed as part of the PROMPT_COMMAND.
MEDIUMassets/shell-integration/wezterm.sh245# This function is installed as the DEBUG trap. It is invoked before each
Slop Phrases4 hits · 8 pts
SeverityFileLineSnippet
LOWmux/src/lib.rs236 // Don't forget to send anything that we might have buffered
LOWmux/src/lib.rs238 // for very short lived commands so that we don't forget to
LOWwezterm-surface/src/cellcluster.rs151 // Don't forget to include any pending cluster on the final step!
MEDIUMvtparse/src/lib.rs1071 // It's worth noting that we see this as final byte `t` here, which
Unused Imports7 hits · 7 pts
SeverityFileLineSnippet
LOWci/update-doc-versions.py3
LOWci/update-doc-versions.py5
LOWci/generate-docs.py7
LOWci/generate-docs.py8
LOWci/generate-workflows.py3
LOWci/subst-release-info.py3
LOWassets/wezterm-nautilus.py19
Deep Nesting7 hits · 7 pts
SeverityFileLineSnippet
LOWci/generate-docs.py17
LOWci/generate-docs.py45
LOWci/generate-docs.py203
LOWci/generate-workflows.py244
LOWci/generate-workflows.py307
LOWci/generate-workflows.py437
LOWci/generate-workflows.py560
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippet
MEDIUMconfig/src/wsl.rs88/// It tries to be robust in the face of future changes
MEDIUMwezterm-gui/src/termwindow/render/screen_line.rs628 // Essentially invisible: don't render it, as anti-aliasing
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWassets/wezterm-nautilus.py28 # Check if the this system runs under systemd, per sd_booted(3)
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippet
LOWdocs/javascript/fix-codeblock-console-copy-button.js5function fixCopyOnlyUserSelectable() {