Skip to content

Commit 227fb7b

Browse files
committed
Add editorconfig
Signed-off-by: yubiuser <github@yubiuser.dev>
1 parent c205450 commit 227fb7b

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# EditorConfig is awesome: https://editorconfig.org/
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
indent_style = space
11+
indent_size = tab
12+
tab_width = 4
13+
charset = utf-8
14+
trim_trailing_whitespace = true
15+
16+
[*.yml]
17+
tab_width = 2
18+
19+
[*.md]
20+
tab_width = 2

.github/workflows/editorconfig.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Editorconfig-Checker
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened, ready_for_review]
5+
6+
jobs:
7+
editorconfig-checker:
8+
if: github.event.pull_request.draft == false
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
14+
- name: Get editorconfig-checker
15+
uses: editorconfig-checker/action-editorconfig-checker@main # tag v1.0.0 is really out of date
16+
17+
- name: Run editorconfig-checker
18+
run: editorconfig-checker

0 commit comments

Comments
 (0)