rustup.rs
shfmt
rustup.rs | shfmt | |
---|---|---|
1 | 2 | |
0 | 84 | |
- | - | |
10.0 | 0.0 | |
over 5 years ago | about 1 month ago | |
Rust | Go | |
Apache License 2.0 | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rustup.rs
-
Ask HN: Let's Build CheckStyle for Bash?
Much of the time that people are writing shell scripts, they're writing them not because they prefer shell syntax to that of some other language, but rather because they're creating a script that needs to be widely disseminated/deployed to all sorts of machines with unpredictable install bases.
This is why a large fraction of the shell scripts that exist in the world still hold to Bourne shell syntax, rather than using any of the syntax extensions from its descendant shells — Bourne shell (or at least, something at /bin/sh that interprets Bourne-shell syntax) is part of the POSIX standard. So you can expect any POSIX system — no matter how weird — to be able to run (Bourne) shell scripts. You can run them on Alpine. You can run them on Busybox. You can run them on your NAS. You can run them on your router. You can run them in your initramfs, on your Kubernetes nodes, on your Mosix nodes, whatever.
For an example of the type of script I'm talking about — see e.g. the script you download+run when you run the command-line on https://rustup.rs: https://github.com/hsivonen/rustup.rs/blob/master/rustup-ini...
There's absolutely no benefit that this script gets from being written directly in POSIX-compiliant Bourne shell syntax, rather than being written in something that compiles to it; any more than programs for your PC would benefit from being written directly in ASM rather than in something that compiles to it.
shfmt
-
Bash Defaults Not Working Like Atom?
Format-Shell is working, but I had to install shfmt manually: https://github.com/patrickvane/shfmt/releases/tag/master. Only one issue is that they don't offer native MacOSX for Silicon, but maybe that's not an issue
-
similar to shellcheck?
There are also: - shfmt - sh - bash language server - bashate
What are some alternatives?
shfmt - Dockernized shfmt. This formats shell script.
ShellCheck - ShellCheck, a static analysis tool for shell scripts
bashate - Code style enforcement for bash programs. Mirror of code maintained at opendev.org.
shellharden - The corrective bash syntax highlighter
neoformat - :sparkles: A (Neo)vim plugin for formatting code.
ale - Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
vscode-bash-debug - Bash shell debugger extension for VSCode (based on bashdb)
bash-language-server - A language server for Bash
causalai - Salesforce CausalAI Library: A Fast and Scalable framework for Causal Analysis of Time Series and Tabular Data
cspell - A Spell Checker for Code!
volta - Volta: JS Toolchains as Code. ⚡