Skip to content

Commit

Permalink
Updated GolangCI linter config
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrinivas8687 committed Dec 9, 2022
1 parent bd61dcf commit b1dc5e4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 65 deletions.
81 changes: 17 additions & 64 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,69 +4,22 @@ run:
tests: false
allow-parallel-runners: true

linters-settings:
funlen:
lines: 180
statements: 120
gocritic:
enabled-tags:
- diagnostic
- experimental
- performance
- style
gocyclo:
min-complexity: 16
goimports:
local-prefixes: github.com/sentinel-official/dvpn-node

linters:
disable-all: true
enable:
- asciicheck
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- funlen
# - gochecknoglobals
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- godot
- godox
# - goerr113
- gofmt
- goimports
- golint
# - gomnd
- gomodguard
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- interfacer
- lll
- maligned
- misspell
- nakedret
- nestif
- nolintlint
- prealloc
- rowserrcheck
- scopelint
- staticcheck
- structcheck
- stylecheck
- testpackage
- typecheck
- unconvert
- unparam
disable:
- gochecknoglobals
- varnamelen
presets:
- bugs
- comment
- complexity
- error
- format
- import
- metalinter
- module
- performance
- sql
- style
- test
- unused
- varcheck
- whitespace
# - wsl
fast: false
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
func main() {
hubtypes.GetConfig().Seal()
root := &cobra.Command{
Use: "sentinel-dvpn-node",
Use: "sentinelnode",
SilenceUsage: true,
}

Expand Down

0 comments on commit b1dc5e4

Please sign in to comment.