Skip to content

Commit

Permalink
Add a lint check for a basic .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
matrss committed Apr 22, 2024
1 parent be7dd91 commit 7ba8bd7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
root = true

[*]
insert_final_newline = true
trim_trailing_whitespace = true
8 changes: 8 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,11 @@ jobs:
files_with_crlf="$(git ls-files --eol | awk '$1 ~ "crlf"')"
echo "$files_with_crlf"
[ "$files_with_crlf" == "" ] || exit 1
editorconfig-checker:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: editorconfig-checker/action-editorconfig-checker@v2
- run: editorconfig-checker

0 comments on commit 7ba8bd7

Please sign in to comment.