Skip to content

Use configuration files rather than hardcoded values #18

Use configuration files rather than hardcoded values

Use configuration files rather than hardcoded values #18

name: EditorConfig audit
on:
pull_request:
branches:
- main
jobs:
editorconfig-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: npm install eclint
- run: |
# Unfortunately, if the "".editorconfig" is present then "eclint"
# checks for full conformance either irrespective or on top of the
# check options you given the command-line. By removing the file, only
# the given options are checked.
git ls-files | grep -iF .editorconfig | xargs -t -n 1 rm
env node_modules/.bin/eclint check --trim_trailing_whitespace $(git ls-files | grep -viF .editorconfig | grep -viE "\.pb$" | grep -viE "NOTICE$")