forked from lra/mackup
-
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.
Make sure that all text files end with a newline character. (lra#1836)
* Make sure that all text files end with a newline character. * Ignore legit files without newlines * enable all rules * Update .linelint.yml
- Loading branch information
Showing
2 changed files
with
35 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,16 @@ | ||
# Make sure that all text files end with a newline character. | ||
# Configure your editor to end every file with a newline character. | ||
# See <https://stackoverflow.com/a/729795> | ||
on: | ||
- pull_request | ||
- push | ||
name: linelint | ||
jobs: | ||
linelint: | ||
runs-on: ubuntu-latest | ||
name: Check if all files end with a newline character | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Linelint | ||
uses: fernandrone/linelint@master |
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,19 @@ | ||
# 'true' will fix files | ||
autofix: false | ||
|
||
# list of paths to ignore, uses gitignore syntaxes (executes before any rule) | ||
ignore: | ||
- tests/fixtures/Library/Application Support/Box/Box Sync/sync_root_folder.txt | ||
- tests/fixtures/Library/Mobile Documents/com~apple~CloudDocs/_blank_.md | ||
|
||
rules: | ||
# checks if file ends in a newline character | ||
end-of-file: | ||
# set to true to enable this rule | ||
enable: true | ||
|
||
# set to true to disable autofix (if enabled globally) | ||
disable-autofix: true | ||
|
||
# if true also checks if file ends in a single newline character | ||
single-new-line: true |