shellharden
shfmt
shellharden | shfmt | |
---|---|---|
16 | 10 | |
4,556 | 26 | |
- | - | |
5.0 | 10.0 | |
about 1 month ago | about 5 years ago | |
Rust | Makefile | |
Mozilla Public License 2.0 | Apache 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.
shellharden
-
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)
shfmt
-
Go Run
Are you assuming that based on visiting the vanity import path in a browser?
https://github.com/mvdan/sh is the repo looks like v3.8.0 was released 2 weeks ago.
- FLiP Stack Weekly for 13-Feb-2023
- new user trying to learn what am i doing wrong?
-
Production pipelines are tested in production
For shell specifically, ShellCheck and Shfmt are great.
- Bash-Oneliner: A collection of handy Bash One-Liners and terminal tricks
-
How common are code bases where 90% of functions have the same signature?
I haven't worked in, like, a ton of Go code bases, but I've worked in several (work, my own code, Gio UI, github.com/mvdan/sh, some others), and I've never seen this pattern that extensively. It does seem like something of an antipattern.
-
Ask HN: Let's Build CheckStyle for Bash?
- sh: https://github.com/mvdan/sh
-
Autofix missing spaces for test operators in bash
I guess what you're asking is to automatically format on save. There's https://github.com/mvdan/sh, which between other things, is a shell formatter. I don't know what you're using but shfmt is available in the repos of some linux distros.
- s/bash/zsh/g
-
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 are some alternatives?
ShellCheck - ShellCheck, a static analysis tool for shell scripts
shfmt - A shell formatter (sh/bash/mksh)
neoformat - :sparkles: A (Neo)vim plugin for formatting code.
azure-policy - Repository for Azure Resource Policy built-in definitions and samples
bash-timestamping-sqlite - bash commandline timestamping using a sqlite database for personal analytics, activity logging and auditing
sh - A shell parser, formatter, and interpreter with bash support; includes shfmt
zplug - :hibiscus: A next-generation plugin manager for zsh
rust_cmd_lib - Common rust command-line macros and utilities, to write shell-script like tasks in a clean, natural and rusty way
volta - Volta: JS Toolchains as Code. ⚡
bats-core - Bash Automated Testing System
zsh-syntax-highlighting - Fish shell like syntax highlighting for Zsh.