ci/style: add editorconfig and golangci config

This commit is contained in:
Laytan Laats 2023-03-25 15:15:54 +01:00
parent 6d6856b2a4
commit 67058cb58c
2 changed files with 17 additions and 0 deletions

8
.editorconfig Normal file
View File

@ -0,0 +1,8 @@
root = true
[*]
indent_style = space
indent_size = 4
[Makefile]
indent_style = tab

9
.golangci.yml Normal file
View File

@ -0,0 +1,9 @@
linters-settings:
errcheck:
exclude-functions:
- (io.Writer).Write
run:
skip-files:
- internal/php7/scanner.go # Generated
- internal/php8/scanner.go # Generated
tests: false