Skip to content

Commit

Permalink
Due to deprecation of golint replace it with revive.
Browse files Browse the repository at this point in the history
  • Loading branch information
Abouzar Kamaee committed May 14, 2024
1 parent 86f4ab2 commit 1247d76
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 1247d76

Please sign in to comment.