All Projects → cuonglm → flycheck-checkbashisms

cuonglm / flycheck-checkbashisms

Licence: other
Flycheck linter for checkbashisms

Programming Languages

emacs lisp
2029 projects
Makefile
30231 projects
shell
77523 projects

Flycheck linter for sh using checkbashisms

Build status MELPA MELPA Stable

Installation

Install checkbashisms

checkbashisms is part of Debian devscript.

  • On Debian based systems:
sudo apt-get install devscripts
  • On Redhat/Centos:
sudo yum install rpmdevtools
  • On FreeBSD:
sudo pkg install checkbashisms

or you can download manually and add checkbashisms to your PATH.

Install flycheck-checkbashisms

Manual installation

Copy flycheck-checkbashisms file to load-path, then add these lines to init.el:

(require 'flycheck-checkbashisms)
(eval-after-load 'flycheck '(add-hook 'flycheck-mode-hook #'flycheck-checkbashisms-setup))

Melpa

This package is also available in:

If you use use-package:

(use-package flycheck-checkbashisms
  :ensure t
  :config
  (flycheck-checkbashisms-setup))

Customize variables

;; Check 'echo -n' usage
(setq flycheck-checkbashisms-newline t)

;; Check non-POSIX issues but required to be supported  by Debian Policy 10.4
;; Setting this variable to non nil made flycheck-checkbashisms-newline effects
;; regardless of its value
(setq flycheck-checkbashisms-posix t)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].