fix: remove dead IndexExpression config fields and unreachable JSON-key tokenizer error #201
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # workflows/lint-format.yml | |
| # | |
| # Lint Format | |
| # Lint the project's file trailing spaces, line endings, and format. | |
| name: Lint Format | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| workflow_dispatch: | |
| concurrency: | |
| group: lint-format-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-format: | |
| name: Lint File Endings & Trailing Whitespaces | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Git Repository | |
| uses: actions/checkout@v6 | |
| - name: Check for CRLF Files | |
| run: | | |
| FILES=$(git ls-files --eol | grep crlf || true) | |
| if [[ ! -z "$FILES" ]]; then | |
| echo "The following files have incorrect line endings:" | |
| echo "$FILES" | |
| false | |
| fi | |
| - name: Check for Trailing Whitespaces | |
| run: | | |
| FILES=$(git grep -Ilr '[[:blank:]]$' || true) | |
| if [[ ! -z "$FILES" ]]; then | |
| echo "The following files have trailing whitespaces:" | |
| echo "$FILES" | |
| exit 1 | |
| fi | |
| - name: Check for Missing Final Newlines | |
| run: | | |
| MISSING="" | |
| while IFS= read -r file; do | |
| if [[ -s "$file" && -n "$(tail -c1 "$file")" ]]; then | |
| MISSING="${MISSING}${file}"$'\n' | |
| fi | |
| done < <(git grep -Il '.') | |
| if [[ -n "$MISSING" ]]; then | |
| echo "The following files are missing a trailing newline:" | |
| echo "$MISSING" | |
| exit 1 | |
| fi |