Moves lint logic into lint_clean_files.sh
parent
447448b357
commit
da9b710014
|
|
@ -40,7 +40,7 @@ jobs:
|
|||
GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt;
|
||||
curl https://pre-commit.com/install-local.py | python3 -
|
||||
script:
|
||||
pre-commit run --files `cat clean_files.txt`;
|
||||
./lint_clean_files.sh;
|
||||
|
||||
- <<: *native_job
|
||||
name: Ubuntu 16.04
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
lint_clean_files.sh
|
||||
themes/90210/90210.theme.bash
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Pull list of checkable files from clean_files.txt
|
||||
#
|
||||
mapfile -t FILES < clean_files.txt
|
||||
|
||||
pre-commit run --files "${FILES[@]}"
|
||||
Loading…
Reference in New Issue