ShellCheck
shellharden
ShellCheck | shellharden | |
---|---|---|
499 | 17 | |
37,283 | 4,674 | |
0.7% | 0.3% | |
8.0 | 5.9 | |
19 days ago | 7 months ago | |
Haskell | Rust | |
GNU General Public License v3.0 only | Mozilla Public License 2.0 |
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.
ShellCheck
- Shellcheck
-
Matanuska ADR 017 - Vitest, Vite, Grabthar, Oh My!
Unfortunately, this did mean that configuration began to sprawl. At this point, I had configurations not just for Vite (shared with Vitest) and tsc, but also for Prettier, ESLint and even ShellCheck. Many of these files had shared settings that needed to match each other. This was somewhat manageable, until Vite was also in the mix.
-
Haskell: A Great Procedural Language
Shellcheck is another useful one (linter for shell scripts)
https://www.shellcheck.net/
-
TIL: Some surprising code execution sources in bash
There's now an issue for it https://github.com/koalaman/shellcheck/issues/3088
-
Top FP technologies
ShellCheck
-
Techniques I Use to Create a Great User Experience for Shell Scripts
It's been so long since I used it seriously I couldn't tell you.
There's over 1000 open issues on the GitHub repo, and over 100 contain "false positive". I recognize several of these at first glance.
https://github.com/koalaman/shellcheck/issues?q=is%3Aissue+i...
-
Advanced Shell Scripting Techniques: Automating Complex Tasks with Bash
Reminder of the handy ShellCheck:
* https://www.shellcheck.net
Even if you don't follow or agree with its advice, it can be a handy and quick second opinion / sanity check.
-
New shell scripting language, a new tablet, and in-product messaging
If you're only occasionally writing shell scripts, Amber may not be a priority for you. In such cases, linting tools like ShellCheck could be more beneficial. However, if you find yourself frequently writing shell scripts, to the point where you're considering Python or Ruby for better re-usability, then Amber is definitely worth your attention.
-
Amber – the programming language compiled to Bash
As carlinigraphy points out, shellcheck [0] exists, and can easily be put into pre-commits, a CI pipeline, etc. This would have almost certainly flagged your problem immediately.
> I would be willing to learn a sane language, but bash isn't one.
It's a general language that has to be both an interactive interpreter and script executor, and it needs to support a huge variety of architectures and kernel versions, as well as historical decisions. It's going to have some cruft.
[0]: https://www.shellcheck.net/
-
How I use Devbox in my Elm projects
These projects use Caddy as my local development server, Dart Sass for converting my Sass files to CSS, elm, elm-format, elm-optimize-level-2, elm-review, elm-test (only in Calculator), ShellCheck to find bugs in my shell scripts, and Terser to mangle and compress JavaScript code.
shellharden
-
Advanced Bash-Scripting Guide
Complementary - https://github.com/anordal/shellharden/blob/master/how_to_do...
-
Shellcheck finds bugs in your shell scripts
Everytime I see Shellcheck coming up, I have to mention shellharden[0] written by a colleague of mine. It is basically shellcheck but it applies the suggested changes automatically.
0: https://github.com/anordal/shellharden
-
similar to shellcheck?
Also worth mentioning shellharden
-
Bash Pitfalls
See also:
* https://www.shellcheck.net/ — linting tool to avoid common mistakes and improve your script
* Bash Practices: https://mywiki.wooledge.org/BashGuide/Practices
* Bash Pitfalls: https://mywiki.wooledge.org/BashPitfalls
* safe ways to do things in bash: https://github.com/anordal/shellharden/blob/master/how_to_do...
* better scripting: https://robertmuth.blogspot.in/2012/08/better-bash-scripting...
* robust scripting: https://www.davidpashley.com/articles/writing-robust-shell-s...
-
Code formatter, linters, etc. Recommendations?
There is shellcheck, and shellharden which is a strict version of it. There are similar stuff here, some that also help with your editor. You can also use a docker version of shfmt. See here for a quick tutorial on shfmt.
-
What is best Method of Submitting Bash Script, short Python ignorance confession (lament.)
Regarding linters, there are several of them in most languages.For bash, there is Shellcheck or a more strict (and sometimes confusing) Shellharden to do exactly what you want.
-
Awesome Rewrite It In Rust - A curated list of replacements for existing software written in Rust
For example, shellharden looks awesome.
- anordal/shellharden Safe ways to do things in bash
- How to do things safely in Bash
- How to do things safely in Bash (2018)
What are some alternatives?
bash-language-server - A language server for Bash
shfmt - A shell formatter (sh/bash/mksh)
hdocs - Haskell docs tool
azure-policy - Repository for Azure Resource Policy built-in definitions and samples
stan - 🕵️ Haskell STatic ANalyser
bats-core - Bash Automated Testing System