Merge pull request #239 from pi-hole/editorconfig

Add editorconfig and editorconfig workflow
This commit is contained in:
yubiuser
2022-07-01 09:16:37 +02:00
committed by GitHub
3 changed files with 38 additions and 3 deletions

21
.editorconfig Normal file
View File

@@ -0,0 +1,21 @@
# EditorConfig is awesome: https://editorconfig.org/
# top-most EditorConfig file
root = true
[*]
insert_final_newline = true
indent_style = space
indent_size = tab
tab_width = 4
charset = utf-8
trim_trailing_whitespace = true
[*.yml]
indent_style = space
indent_size = 2
[*.md]
indent_style = space
indent_size = 2

View File

@@ -0,0 +1,14 @@
name: editorconfig-checker
on:
pull_request:
push:
jobs:
build:
name: editorconfig-checker
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: editorconfig-checker/action-editorconfig-checker@main
- run: editorconfig-checker