github.com/grafana/synthetic-monitoring-agent@v0.64.2/.golangci.yaml (about) 1 # yaml-language-server: $schema=https://golangci-lint.run/jsonschema/golangci.jsonschema.json 2 3 version: "2" 4 linters: 5 default: none 6 enable: 7 - bodyclose 8 - decorder 9 - dogsled 10 - dupword 11 - durationcheck 12 - errcheck 13 - errchkjson 14 - errname 15 - gocheckcompilerdirectives 16 - gochecknoinits 17 - goconst 18 - gocritic 19 - gocyclo 20 - goprintffuncname 21 - gosmopolitan 22 - govet 23 - grouper 24 - ineffassign 25 - interfacebloat 26 - loggercheck 27 - mirror 28 - misspell 29 - nakedret 30 - nestif 31 - nolintlint 32 - nosprintfhostport 33 - reassign 34 - rowserrcheck 35 - sqlclosecheck 36 - staticcheck 37 - testableexamples 38 - unconvert 39 - unused 40 - wastedassign 41 - whitespace 42 - zerologlint 43 - wsl_v5 44 settings: 45 goconst: 46 min-len: 5 47 min-occurrences: 5 48 gocritic: 49 enabled-checks: 50 - ruleguard 51 - stringXbytes 52 settings: 53 ruleguard: 54 rules: internal/rules/rules.go 55 gocyclo: 56 min-complexity: 20 57 importas: 58 alias: 59 - pkg: github.com/grafana/synthetic-monitoring-agent/pkg/pb/synthetic_monitoring 60 alias: sm 61 - pkg: github.com/prometheus/client_model/go 62 alias: dto 63 no-unaliased: true 64 no-extra-aliases: true 65 rowserrcheck: 66 packages: 67 - github.com/jmoiron/sqlx 68 exclusions: 69 generated: lax 70 presets: 71 - comments 72 - common-false-positives 73 - legacy 74 - std-error-handling 75 rules: 76 - path: (.+)\.go$ 77 text: (func|method|type|var|struct field|func parameter|method parameter) [^ ]+ should be .* 78 - path: _test\.go$ 79 linters: 80 - goconst 81 paths: 82 - third_party$ 83 - builtin$ 84 - examples$ 85 formatters: 86 enable: 87 - gofmt 88 - goimports 89 exclusions: 90 generated: lax 91 paths: 92 - third_party$ 93 - builtin$ 94 - examples$