Skip to content

chore: replace no-op final-newline lint with a real check; drop irrelevant excludes - #68

Merged
philippemnoel merged 1 commit into
mainfrom
chore/fix-final-newline-lint
Jun 14, 2026
Merged

chore: replace no-op final-newline lint with a real check; drop irrelevant excludes#68
philippemnoel merged 1 commit into
mainfrom
chore/fix-final-newline-lint

Conversation

@philippemnoel

@philippemnoel philippemnoel commented Jun 14, 2026

Copy link
Copy Markdown
Member

Problem

The lint-format.yml Print Modified Files step ran git ls-files --modified — which lists files differing between the working tree and the index. On a fresh CI checkout nothing is modified, so it was always empty: the step passed unconditionally and never actually checked anything.

Fix

  1. Replace it with a real, binary-safe Check for Missing Final Newlines step (git grep -Il lists tracked text files; fails CI if any lacks a trailing newline).
  2. Drop the irrelevant exclude list from both lint steps. The :(exclude)*.nix/*.sql/*.out/*.rs (+docker/manifests) excludes were copied from paradedb (a Rust/Postgres repo) and dont apply here — this repo has none of those types. Both checks now cover all tracked text files.

Verified 0 violations for both checks on the current tree, so CI stays green.

Part of an org-wide sweep (mirrors paradedb/paradedb#5324).

@philippemnoel
philippemnoel force-pushed the chore/fix-final-newline-lint branch from 366bd18 to aecb8fc Compare June 14, 2026 21:30
@philippemnoel philippemnoel changed the title chore: replace no-op final-newline lint with a real check chore: replace no-op final-newline lint with a real check; drop irrelevant excludes Jun 14, 2026
@philippemnoel
philippemnoel merged commit 8bcd82a into main Jun 14, 2026
17 checks passed
@philippemnoel
philippemnoel deleted the chore/fix-final-newline-lint branch June 14, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant