sh
https://github.com/mvdan/sh
Go
A shell parser, formatter, and interpreter with bash support; includes shfmt
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Go not yet supported2 Subscribers
Add a CodeTriage badge to sh
Help out
- Issues
- syntax: heredoc trailing comment duplicated on each format when inside indented block
- Feature Request: Allow replacing current node during Walk
- Unnecessary line continuations are added to multi-line arithmetic expressions
- Put `then` on a separate line when an `if` statement has a multi-line condition
- allow preserving/adding opening parenthesis in case statements
- zsh: associative arrays with hyphens in key get mangled
- feat: shfmt detects shell type from inline '# shellcheck shell=...'
- syntax: End brace of grouping expression not indented when part of multicommand `&&` chain
- pipelining and redirection are broken because gosh does not close file descriptors
- syntax: Incorrectly Formats Bash Script with Heredoc and Subshell
- Docs
- Go not yet supported