Skip to content

Commit

Permalink
add new lint scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Schaller <ivan@schaller.sh>
  • Loading branch information
olofvndrhr committed Aug 31, 2023
1 parent f252b4b commit 1bc0a28
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/format.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

shfmt --language-dialect bash --write \
./**/*
9 changes: 9 additions & 0 deletions scripts/lint.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

shellcheck --shell=bash --external-sources \
bin/* --source-path=template/lib/ \
lib/* \
scripts/*

shfmt --language-dialect bash --diff -i 4 -bn -ci -sr \
./**/*

0 comments on commit 1bc0a28

Please sign in to comment.