From 1247d765153080b999f42f5b1d4c7f07e855cf50 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. --- .golangci.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 28c90c24..6c12015e 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: [15] # Set the maximum allowed cyclomatic complexity to 15, similar to gocyclo + linters: disable-all: true enable: - staticcheck - ineffassign - - golint + - revive - goimports - errcheck issues: