BASH linter

There's a good linter for BASH called ShellCheck, it can be installed on Debian based systmes with:

# apt-get install shellcheck

You can then invoke it simply from the command line to get feedback on your shell script. The messages are colour coded to indicate their severity: green, yellow and red:

shellcheck

On the fly syntax checking in Emacs

It's easy getting on the fly linting of the BASH scripts you're working on by installing flycheck:

flycheck bash

M-xpackage-installflycheck

and enable it everwhere:

(setqglobal-flycheck-modet)

It will now pick up whatever linting tool you've installed for the current mode, e.g. shellcheck. For a list of all languages and linting tools it supports out of the box, have a look at this list .


~ /home 🏠 ~ talks πŸ’¬ ~ bash ~ craftsmanship ~ db ~ dongxi ~ emacs ~ escenic ~ iam ~ java ~ js ~ language ~ latex ~ ldap ~ life ~ linux ~ llm ~ mac-os-x ~ mt-foo ~ network ~ norsk ~ python ~ quotes ~ running ~ security ~ travel ~ unix ~ various ~ vcs ~ webdesign ~ windows ~ discoveries ~ cv πŸ§™ ~

Licensed under CC BY Creative Commons License ~ πŸ“‘ RSS feed ~ βœ‰ torstein.k.johansen @ gmail ~ 🐘 @skybert@hachyderm.io ~ πŸŽ₯ youtube.com/@skybert

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /