-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Newline Linter | ||
|
||
> **3.206 Line** | ||
> A sequence of zero or more non- <newline> characters plus a terminating <newline> character. | ||
## GitHub Action | ||
|
||
### Inputs | ||
|
||
* `exclusion_pattern` | ||
* Optional extended-`grep`-compatible pattern of filenames to exclude. | ||
|
||
### Example | ||
|
||
```yml | ||
- name: Lint newlines | ||
uses: fionn/newline-linter@master | ||
with: | ||
exclusion_pattern: not_text.jpeg | ||
``` | ||
## Git Subcommand | ||
Install `git-no-newline` in your path and run | ||
```shell | ||
$ git no-newline | ||
``` | ||
in a Git repository to list non-binary files that do not terminate in a newline. |