Skip to content

Commit

Permalink
github/workflows: add editorconfig linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Akemi committed Oct 21, 2024
1 parent 9737b99 commit 095976f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ trim_trailing_whitespace = true

[.git/COMMIT*]
max_line_length = 72

[osdep/dirent-win.h]
charset = unset
insert_final_newline = unset
indent_style = unset
indent_size = unset
max_line_length = unset
trim_trailing_whitespace = unset
7 changes: 7 additions & 0 deletions .editorconfig-checker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"Format": "github-actions",
"Disable": {
"IndentSize": true,
"MaxLineLength": true
}
}
8 changes: 8 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1

editorconfig-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
- run: go install github.com/editorconfig-checker/editorconfig-checker/v3/cmd/editorconfig-checker@latest
- uses: actions/checkout@v4
- run: editorconfig-checker -config .editorconfig-checker.json

0 comments on commit 095976f

Please sign in to comment.