3.206 Line
A sequence of zero or more non-<newline> characters plus a terminating <newline> character.
exclusion_pattern
- Optional extended-
grep
-compatible pattern of filenames to exclude.
- Optional extended-
- name: Lint newlines
uses: fionn/newline-linter@master
with:
exclusion_pattern: intentionally_unterminated_file
See this repository's workflow for a more complete example.
Install git-no-newlines
in your path and run
git no-newlines
in a Git repository to list non-binary files that do not terminate in a newline.