github/workflows: add editorconfig linting

This commit is contained in:
der richter 2024-10-20 14:00:47 +02:00 committed by Kacper Michajłow
parent ef6eda32a2
commit e661165ead
3 changed files with 22 additions and 0 deletions

View File

@ -13,3 +13,11 @@ trim_trailing_whitespace = true
[.git/COMMIT*] [.git/COMMIT*]
max_line_length = 72 max_line_length = 72
[{osdep/dirent-win.h,TOOLS/osxbundle/mpv.app/Contents/PkgInfo}]
charset = unset
insert_final_newline = unset
indent_style = unset
indent_size = unset
max_line_length = unset
trim_trailing_whitespace = unset

View File

@ -0,0 +1,7 @@
{
"Format": "github-actions",
"Disable": {
"IndentSize": true,
"MaxLineLength": true
}
}

View File

@ -39,3 +39,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1 - uses: chartboost/ruff-action@v1
editorconfig-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: editorconfig-checker/action-editorconfig-checker@main
- run: editorconfig-checker -config .editorconfig-checker.json