Merge pull request #1701 from davidpfarrell/lint_clean_files

Moves lint logic into lint_clean_files.sh
pull/1705/head
Noah Gorny 2020-11-04 01:08:22 +02:00 committed by GitHub
commit 52c0f6564e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
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

View File

@ -1 +1,2 @@
lint_clean_files.sh
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[@]}"