# anordal/shellharden

The corrective bash syntax highlighter

Repository: https://github.com/anordal/shellharden
Canonical: https://ross.abutalabs.com/products/shellharden
Language: Rust
License: MPL-2.0
License Family: copyleft
Topics: lint, syntax-highlighter, policy
Last push: 2026-07-09T22:28:20+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 91, release rhythm 58, longevity 100
- inputs: {"age_days": 3513, "days_push": 55, "days_rel": 67, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4799, forks 133 (observed 2026-08-28T04:09:00.161629+00:00)

## What it is
Shellharden is a Rust CLI tool that syntax-highlights bash scripts and semi-automatically rewrites them to ShellCheck conformance, mainly by fixing quoting. It can display suggested changes with colored diff-like highlighting or apply them via a --transform mode.

## Use cases
- fix unquoted variable expansions in bash scripts
- highlight bash syntax in the terminal
- automatically apply ShellCheck-style quoting fixes
- audit shell scripts for unsafe quoting
- rewrite legacy shell scripts to be safer

## When to choose
- you want to automatically fix quoting issues that ShellCheck only reports
- you need terminal syntax highlighting for bash with suggested corrections
- you maintain many shell scripts and want semi-automated hardening

## When to avoid
- you need full ShellCheck lint coverage rather than quoting-focused fixes
- your scripts intentionally depend on unquoted word-splitting behavior
- you need linting for POSIX sh or other shells beyond bash

## Facets
- artifact type: cli-tool
- maturity: stable
- function: linter, formatter, developer-tools
- domain: developer-tools
- platform: windows, cli, cross-platform
- tags: bash, shell-scripting, syntax-highlighting, shellcheck, quoting, code-hardening, command-line, automation, linux, macos

## Member repositories
- anordal/shellharden (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:00.161629+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:18:38.159392+00:00, confidence not recorded.
  - readme: https://github.com/anordal/shellharden (fetched 2026-08-28T04:09:00.161629+00:00, sha b3c3865d7842)
  - registry_crates: https://crates.io/api/v1/crates/shellharden (fetched 2026-08-29T09:01:39.392056+00:00, sha 4e820d79c8e5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
