Moves lint logic into lint_clean_files.sh

pull/1701/head
David Farrell 2020-11-03 10:10:11 -08:00
parent 447448b357
commit da9b710014
No known key found for this signature in database
GPG Key ID: 1CCA28D0E300B56F
3 changed files with 9 additions and 1 deletions

View File

@ -40,7 +40,7 @@ jobs:
GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt; GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt;
curl https://pre-commit.com/install-local.py | python3 - curl https://pre-commit.com/install-local.py | python3 -
script: script:
pre-commit run --files `cat clean_files.txt`; ./lint_clean_files.sh;
- <<: *native_job - <<: *native_job
name: Ubuntu 16.04 name: Ubuntu 16.04

View File

@ -1 +1,2 @@
lint_clean_files.sh
themes/90210/90210.theme.bash themes/90210/90210.theme.bash

View File

@ -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[@]}"