Skip to content

Commit

Permalink
Added a new line linter (#55)
Browse files Browse the repository at this point in the history
* added a new line linter

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* PR comment

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
  • Loading branch information
owaiskazi19 authored Jul 19, 2022
1 parent 940c647 commit 1fc6204
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/code-hygiene.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Code Hygiene

on: [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/linelint@0.0.4
18 changes: 18 additions & 0 deletions .linelint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 'true' will fix files
autofix: true

ignore:
- CONTRIBUTING.md
- DEVELOPER_GUIDE.md
- SECURITY.md
- formatter/license-header.txt
- src/main/resources/log4j2.xml

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
1 change: 0 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
rootProject.name = 'IndependentPlugin'

0 comments on commit 1fc6204

Please sign in to comment.