mirror of
https://github.com/thegeeklab/wp-ansible.git
synced 2024-11-21 13:40:39 +00:00
chore: cleanup editorconfig and add linting (#210)
This commit is contained in:
parent
a9cda1304b
commit
c785b22b73
@ -8,7 +8,10 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: lint
|
- name: lint-editorconfig
|
||||||
|
image: docker.io/mstruebing/editorconfig-checker
|
||||||
|
|
||||||
|
- name: lint-golang
|
||||||
image: docker.io/golang:1.21
|
image: docker.io/golang:1.21
|
||||||
commands:
|
commands:
|
||||||
- make lint
|
- make lint
|
||||||
|
26
.editorconfig
Normal file
26
.editorconfig
Normal 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
|
Loading…
Reference in New Issue
Block a user