Skip to content

Commit

Permalink
lint:pre-commit shfmt hook
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jan 30, 2020
1 parent 98d2ca0 commit f8c01e7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,14 @@ repos:
hooks:
- id: flake8
language_version: python3
- repo: https://github.com/casperdcl/sh
rev: master
hooks:
- id: shfmt
language: golang
args:
- -l # list files whose formatting differs from shfmt's
- -d # error with a diff when the formatting differs
- -i # indentation
- '2' # 2 spaces
- -ci # switch cases will be indented

0 comments on commit f8c01e7

Please sign in to comment.