Skip to content
This repository was archived by the owner on Mar 18, 2021. It is now read-only.

Linting code

Thibault Maekelbergh edited this page Feb 20, 2019 · 1 revision

Bash

Shellcheck is used to ensure consistent and safe shell (bash) scripts. Make sure you have shellcheck installed and run the lint command to test the scripts:

$ brew install shellcheck
$ npm run lint:shell

In hubble.sh line 6:
  printf "\n\\033[1m\\033[34m%s\\033[0m\\n\\n" "[hubble-scripts] ${1}"
          ^-- SC1117: Backslash is literal in "\n". Prefer explicit escaping: "\\n".
Clone this wiki locally