From 67058cb58c869148420040ade4d8957baabbd5c5 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Sat, 25 Mar 2023 15:15:54 +0100 Subject: [PATCH] ci/style: add editorconfig and golangci config --- .editorconfig | 8 ++++++++ .golangci.yml | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 .editorconfig create mode 100644 .golangci.yml diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..4256903 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[*] +indent_style = space +indent_size = 4 + +[Makefile] +indent_style = tab diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..61eaf39 --- /dev/null +++ b/.golangci.yml @@ -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