gobot.io/x/gobot/v2@v2.1.0/.golangci.yml (about) 1 # note: GolangCI-Lint also searches for config files in all directories from the directory of the first analyzed path up to the root. 2 run: 3 # Timeout for analysis, e.g. 30s, 5m. 4 # gobot is very expensive, on a machine with heavy load it takes some minutes 5 # for first run or after empty the cache by 'golangci-lint cache clean' 6 # Default: 1m 7 timeout: 5m 8 9 # If set we pass it to "go list -mod={option}". From "go help modules": 10 # If invoked with -mod=readonly, the go command is disallowed from the implicit 11 # automatic updating of go.mod described above. Instead, it fails when any changes 12 # to go.mod are needed. This setting is most useful to check that go.mod does 13 # not need updates, such as in a continuous integration and testing system. 14 # If invoked with -mod=vendor, the go command assumes that the vendor 15 # directory holds the correct copies of dependencies and ignores 16 # the dependency descriptions in go.mod. 17 # 18 # Allowed values: readonly|vendor|mod 19 # By default, it isn't set. 20 modules-download-mode: readonly 21 22 # Enables skipping of directories: 23 # - vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ 24 # Default: true 25 skip-dirs-use-default: false 26 27 # note: examples will be currently omitted by the build tag 28 skip-dirs: 29 - platforms/opencv 30 31 linters: 32 # Enable specific linter 33 # https://golangci-lint.run/usage/linters/#enabled-by-default 34 # note: typecheck can not be disabled, it is used to check code compilation 35 # 36 # TODO: this default linters needs to be disabled to run successfully, we have to fix 37 # all issues step by step to enable at least the default linters 38 disable: 39 - errcheck 40 - ineffassign 41 #- staticcheck 42 - unused 43 44 enable: 45 - nolintlint 46 47 linters-settings: 48 nolintlint: 49 # Enable to require an explanation of nonzero length after each nolint directive. 50 # Default: false 51 require-explanation: true 52 # Enable to require nolint directives to mention the specific linter being suppressed. 53 # Default: false 54 require-specific: true 55 56 revive: 57 rules: 58 # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unexported-return 59 # disable this rule, because sometimes it has its justification 60 - name: unexported-return 61 severity: warning 62 disabled: true