From f4d33b78be022ad4ab1900e50fc5233eb346f603 Mon Sep 17 00:00:00 2001 From: Abouzar Kamaee Date: Tue, 14 May 2024 13:00:59 +0300 Subject: [PATCH] Due to deprecation of golint replace it with revive. Signed-off-by: Abouzar Kamaee --- .golangci.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 28c90c24..3c98b4e8 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,16 +1,21 @@ run: linters-settings: - golint: - min-confidence: 0.9 - gocyclo: - min-complexity: 15 + revive: + rules: + # Adjust rules related to code simplicity, readability, and maintainability + - name: exported + severity: warning + - name: cyclomatic + severity: warning + arguments: [20] # Set the maximum allowed cyclomatic complexity to 20 + linters: disable-all: true enable: - staticcheck - ineffassign - - golint + - revive - goimports - errcheck issues: