0
0
mirror of https://github.com/thegeeklab/wp-ansible.git synced 2024-11-21 03:30:39 +00:00

chore: cleanup editorconfig and add linting (#210)

This commit is contained in:
Robert Kaussow 2023-12-12 16:46:42 +01:00 committed by GitHub
parent a9cda1304b
commit c785b22b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 1 deletions

View File

@ -8,7 +8,10 @@ platform:
arch: amd64
steps:
- name: lint
- name: lint-editorconfig
image: docker.io/mstruebing/editorconfig-checker
- name: lint-golang
image: docker.io/golang:1.21
commands:
- make lint

26
.editorconfig Normal file
View File

@ -0,0 +1,26 @@
# https://editorconfig.org/
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[Makefile]
indent_style = tab
indent_size = 4
[*.{go,mod}]
indent_style = tab
tab_width = 4
[*.star]
indent_style = space
indent_size = 4
[LICENSE]
indent_size = unset