From 5577f9604205893bb807895b75b736dd965f40b3 Mon Sep 17 00:00:00 2001 From: guacamole Date: Fri, 1 Oct 2021 08:10:14 +0530 Subject: [PATCH] chore: added golangci linter to improve code quality Signed-off-by: guacamole --- golangci.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 golangci.yaml diff --git a/golangci.yaml b/golangci.yaml new file mode 100644 index 00000000..d99dccf1 --- /dev/null +++ b/golangci.yaml @@ -0,0 +1,25 @@ +run: + timeout: 30s + +skip-dirs: + - .go-skynet + +linters-settings: + cyclop: + max-complexity: 16 + +lll: + line-length: 120 + tab-width: 1 + +linters: + enable: + - bodyclose + - cyclop + - gochecknoglobals + - goimports + - gosec + - lll + - nilerr + - noctx + - sqlclosecheck