Whitespace
Fix whitespace issues in source code: trailing whitespace and missing final newlines.
Actions
Check for issues (dry-run)
<skills>/whitespace/scripts/whitespace-check.sh [directory] [extensions]
Fix issues
<skills>/whitespace/scripts/whitespace-fix.sh [directory] [extensions]
Default extensions: jl,py,js,ts,tsx,rs,go,md,json,yaml,yml,toml,sh
Default directory: current working directory (.)
What Gets Fixed
- Trailing whitespace - spaces/tabs at end of lines
- Final newline - ensures files end with exactly one newline
Notes
- Scripts require GNU sed (Linux default, install via
brew install gnu-sedon macOS) - Binary files and
.gitdirectory are excluded - Always review changes with
git diffafter running
Source: krastanov/juliallmagentskills — distributed by TomeVault.