Merge pull request #1883 from pi-hole/editorconfig

Add editorconfig
This commit is contained in:
Adam Warner
2025-08-11 22:55:37 +01:00
committed by GitHub
16 changed files with 73 additions and 38 deletions

20
.editorconfig Normal file
View File

@@ -0,0 +1,20 @@
# EditorConfig is awesome: https://editorconfig.org/
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = tab
tab_width = 4
charset = utf-8
trim_trailing_whitespace = true
[*.yml]
tab_width = 2
[*.md]
tab_width = 2

18
.github/workflows/editorconfig.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: Editorconfig-Checker
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
editorconfig-checker:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get editorconfig-checker
uses: editorconfig-checker/action-editorconfig-checker@main # tag v1.0.0 is really out of date
- name: Run editorconfig-checker
run: editorconfig-checker

2
.gitignore vendored
View File

@@ -13,6 +13,8 @@ docker-compose.yml
etc-dnsmasq.d/ etc-dnsmasq.d/
etc-pihole/ etc-pihole/
var-log/ var-log/
.vscode/
.pytest_cache/
# WIP/test stuff # WIP/test stuff
doco.yml doco.yml

View File

@@ -1,5 +0,0 @@
{
"github-actions.workflows.pinned.workflows": [
".github/workflows/v6-alpine-play.yml"
]
}