forked from opensearch-project/OpenSearch
-
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.
Signed-off-by: Owais Kazi <[email protected]>
- Loading branch information
1 parent
a89b7e6
commit 1aeb64f
Showing
2 changed files
with
34 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,14 @@ | ||
name: Code Hygiene | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
linelint: | ||
runs-on: ubuntu-latest | ||
name: Check if all files end in newline | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Linelint | ||
uses: fernandrone/[email protected] |
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,20 @@ | ||
# 'true' will fix files | ||
autofix: true | ||
|
||
ignore: | ||
- .git/ | ||
- .gradle/ | ||
- '*.sha1' | ||
- '*.txt' | ||
- 'buildSrc/src/testKit/opensearch.build/LICENSE' | ||
- 'buildSrc/src/testKit/opensearch.build/NOTICE' | ||
- 'server/licenses/apache-log4j-extras-DEPENDENCIES' | ||
|
||
rules: | ||
# checks if file ends in a newline character | ||
end-of-file: | ||
# set to true to enable this rule | ||
enable: true | ||
|
||
# if true also checks if file ends in a single newline character | ||
single-new-line: true |