diff --git a/.golangci.yml b/.golangci.yml index a9856dc1..30404208 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -18,7 +18,6 @@ linters: - gosimple # Linter for Go source code that specializes in simplifying a code - govet # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string - ineffassign # Detects when assignments to existing variables are not used - - staticcheck # Staticcheck is a go vet on steroids, applying a ton of static analysis checks - structcheck # Finds unused struct fields - typecheck # Like the front-end of a Go compiler, parses and type-checks Go code - unused # Checks Go code for unused constants, variables, functions and types @@ -64,6 +63,9 @@ linters: disable: # main-list + ## disable now re-enable later + - staticcheck # Staticcheck is a go vet on steroids, applying a ton of static analysis checks + ## re-enable never - contextcheck # Check the function whether use a non-inherited context - cyclop # Checks function and package cyclomatic complexity - durationcheck # Check for two durations multiplied together