Repository Analysis

starship/starship

☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!

1.9 Likely human-written View on GitHub
1.9
Adjusted Score
1.9
Raw Score
100%
Time Factor
2026-05-30
Last Push
57,826
Stars
Rust
Language
232,869
Lines of Code
744
Files
110
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 82MEDIUM 4LOW 24

Pattern Findings

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

Cross-File Repetition82 hits · 410 pts
SeverityFileLineSnippet
HIGHdocs/tr-TR/config/README.md0` | multi-line literal string | less escaping | | `
HIGHdocs/fr-FR/config/README.md0` | multi-line literal string | less escaping | | `
HIGHdocs/de-DE/config/README.md0` | multi-line literal string | less escaping | | `
HIGHdocs/pl-PL/config/README.md0` | multi-line literal string | less escaping | | `
HIGHdocs/vi-VN/config/README.md0` | multi-line literal string | less escaping | | `
HIGHdocs/no-NO/config/README.md0` | multi-line literal string | less escaping | | `
HIGHdocs/config/README.md0` | multi-line literal string | less escaping | | `
HIGHdocs/ru-RU/config/README.md0` | multi-line literal string | less escaping | | `
HIGHdocs/ar-SA/config/README.md0` | multi-line literal string | less escaping | | `
HIGHdocs/nl-NL/config/README.md0` | multi-line literal string | less escaping | | `
HIGHdocs/pt-PT/config/README.md0` | multi-line literal string | less escaping | | `
HIGHdocs/zh-TW/config/README.md0` | multi-line literal string | less escaping | | `
HIGHdocs/ko-KR/config/README.md0` | multi-line literal string | less escaping | | `
HIGHdocs/it-IT/config/README.md0` | multi-line literal string | less escaping | | `
HIGHdocs/id-ID/config/README.md0` | multi-line literal string | less escaping | | `
HIGHdocs/ckb-IR/config/README.md0` | multi-line literal string | less escaping | | `
HIGHdocs/bn-BD/config/README.md0` | multi-line literal string | less escaping | | `
HIGHdocs/tr-TR/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/fr-FR/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/de-DE/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/pl-PL/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/vi-VN/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/no-NO/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/es-ES/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/ru-RU/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/ar-SA/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/nl-NL/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/ja-JP/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/zh-CN/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/pt-PT/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/zh-TW/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/ko-KR/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/pt-BR/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/it-IT/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/id-ID/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/ckb-IR/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/bn-BD/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/uk-UA/config/README.md0[┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green)
HIGHdocs/tr-TR/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/fr-FR/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/de-DE/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/pl-PL/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/vi-VN/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/no-NO/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/es-ES/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/ru-RU/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/ar-SA/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/nl-NL/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/ja-JP/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/zh-CN/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/pt-PT/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/zh-TW/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/ko-KR/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/pt-BR/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/it-IT/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/id-ID/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/ckb-IR/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
HIGHdocs/bn-BD/config/README.md0$username\ $hostname\ $localip\ $shlvl\ $singularity\ $kubernetes\ $nats\ $directory\ $vcsh\ $fossil_branch\ $fossil_met
22 more matches not shown…
Over-Commented Block22 hits · 22 pts
SeverityFileLineSnippet
LOW.rustfmt.toml1# This file intentionally left almost blank
LOWinstall/macos_packages/build_and_notarize.sh1#!/bin/bash
LOWsrc/main.rs101 },
LOWsrc/main.rs121 },
LOWsrc/context.rs961}
LOWsrc/init/starship.bash1# We use PROMPT_COMMAND and the DEBUG trap to generate timing information. We try
LOWsrc/init/starship.bash41 fi
LOWsrc/formatter/string_formatter.rs101 /// You should provide a function or closure that accepts the variable name `name: &str` as a
LOWsrc/configs/aws.rs1use serde::{Deserialize, Serialize};
LOWsrc/configs/aws.rs21/// is read from the `AWS_SESSION_EXPIRATION` or `AWS_CREDENTIAL_EXPIRATION`
LOWsrc/configs/mod.rs121#[serde(default)]
LOWsrc/configs/vcs.rs1//! The VCS module is a gathering of other Version Control System modules.
LOWsrc/configs/vcs.rs21pub struct VcsConfig<'a> {
LOWsrc/modules/os.rs321 }
LOWsrc/modules/shell.rs401 bash_indicator = "B"
LOWsrc/modules/git_branch.rs661 // create_command("git")?
LOWsrc/modules/dotnet.rs161 }
LOWsrc/modules/directory.rs21/// Creates a module with the current logical or physical directory
LOWsrc/modules/nix_shell.rs41}
LOWsrc/modules/docker_context.rs1use std::path::PathBuf;
LOWsrc/modules/git_status.rs21/// - `⇡` – This branch is ahead of the branch being tracked
LOWsrc/modules/username.rs1use super::{Context, Detected, Module, ModuleConfig};
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippet
MEDIUMinstall/macos_packages/build_and_notarize.sh88# Create the component package
MEDIUMinstall/macos_packages/build_and_notarize.sh92# Create the distribution package
MEDIUMsrc/init/starship.zsh81 # Define a wrapper fn to call the original widget fn and then Starship's.
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippet
LOWinstall/macos_packages/common.sh10 # Check if this is a relative path: if so, prepend './' to it
LOW.github/workflows/workflow.yml108 # Check if config schema needs to be updated to reflect updated configuration options
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippet
MEDIUMdocs/public/presets/toml/pastel-powerline.toml58# Here is how you can shorten some long paths by text replacement