diff --git a/.golangci.yml b/.golangci.yml index 2a4553a..9c6702e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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 \ No newline at end of file + fast: false \ No newline at end of file diff --git a/main.go b/main.go index 10c961a..c0a7309 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ import ( func main() { hubtypes.GetConfig().Seal() root := &cobra.Command{ - Use: "sentinel-dvpn-node", + Use: "sentinelnode", SilenceUsage: true, }