From 93320737473567ff468b774e1c08f0f6bddaae91 Mon Sep 17 00:00:00 2001 From: skeris Date: Sat, 7 Dec 2024 15:20:18 +0300 Subject: [PATCH] add goconst. maybe some improvements needed --- .golangci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 74202f2..02b07e4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -17,8 +17,17 @@ linters: enable: - errcheck - govet + - goconst linters-settings: + goconst: + min-len: 2 + min-occurrences: 2 + ignore-tests: true + numbers: true + min: 2 + max: 1000000 + ignore-calls: false errcheck: exclude-functions: - (io.Closer).Close