github.com/crewjam/saml@v0.4.14/.golangci.yml (about) 1 # Configuration file for golangci-lint 2 # 3 # https://github.com/golangci/golangci-lint 4 # 5 # fighting with false positives? 6 # https://github.com/golangci/golangci-lint#nolint 7 8 linters: 9 enable: 10 - bodyclose # checks whether HTTP response body is closed successfully [fast: false, auto-fix: false] 11 - errcheck # Inspects source code for security problems [fast: true, auto-fix: false] 12 - gocritic # The most opinionated Go source code linter [fast: true, auto-fix: false] 13 - gocyclo # Computes and checks the cyclomatic complexity of functions [fast: true, auto-fix: false] 14 - gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification [fast: true, auto-fix: true] 15 - goimports # Goimports does everything that gofmt does. Additionally it checks unused imports [fast: true, auto-fix: true] 16 - gosec # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases [fast: true, auto-fix: false] 17 - gosimple # Linter for Go source code that specializes in simplifying a code [fast: false, auto-fix: false] 18 - govet # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string [fast: false, auto-fix: false] 19 - ineffassign # Detects when assignments to existing variables are not used [fast: true, auto-fix: false] 20 - misspell # Finds commonly misspelled English words in comments [fast: true, auto-fix: true] 21 - nakedret # Finds naked returns in functions greater than a specified function length [fast: true, auto-fix: false] 22 - prealloc # Finds slice declarations that could potentially be preallocated [fast: true, auto-fix: false] 23 - revive # Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes [fast: true, auto-fix: false] 24 - staticcheck # Staticcheck is a go vet on steroids, applying a ton of static analysis checks [fast: false, auto-fix: false] 25 - stylecheck # Stylecheck is a replacement for golint [fast: false, auto-fix: false] 26 - typecheck # Like the front-end of a Go compiler, parses and type-checks Go code [fast: true, auto-fix: false] 27 - unconvert # Remove unnecessary type conversions [fast: true, auto-fix: false] 28 - unparam # Reports unused function parameters [fast: false, auto-fix: false] 29 - unused # Checks Go code for unused constants, variables, functions and types [fast: false, auto-fix: false] 30 31 disable: 32 # TODO(ross): fix errors reported by these checkers and enable them 33 - dupl # Tool for code clone detection [fast: true, auto-fix: false] 34 - gochecknoglobals # Checks that no globals are present in Go code [fast: true, auto-fix: false] 35 - gochecknoinits # Checks that no init functions are present in Go code [fast: true, auto-fix: false] 36 - goconst # Finds repeated strings that could be replaced by a constant [fast: true, auto-fix: false] 37 - lll # Reports long lines [fast: true, auto-fix: false] 38 - depguard # Go linter that checks if package imports are in a list of acceptable packages [fast: true, auto-fix: false] 39 linters-settings: 40 goimports: 41 local-prefixes: github.com/crewjam/saml 42 govet: 43 disable: 44 - shadow 45 enable: 46 - asmdecl 47 - assign 48 - atomic 49 - bools 50 - buildtag 51 - cgocall 52 - composites 53 - copylocks 54 - errorsas 55 - httpresponse 56 - loopclosure 57 - lostcancel 58 - nilfunc 59 - printf 60 - shift 61 - stdmethods 62 - structtag 63 - tests 64 - unmarshal 65 - unreachable 66 - unsafeptr 67 - unusedresult 68 issues: 69 exclude-use-default: false 70 exclude: 71 - G104 # 'Errors unhandled. (gosec) 72