Run docstring lint in seprate job

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
Jakub Sztandera 2019-07-08 17:36:24 +02:00
parent 4df601ea6a
commit eae1851aaf
2 changed files with 10 additions and 3 deletions

View File

@ -98,13 +98,18 @@ jobs:
default: go/circleci-golang
golangci-lint-version:
type: string
default: 1.15.0
default: 1.17.1
concurrency:
type: string
default: '2'
description: |
Concurrency used to run linters. Defaults to 2 because NumCPU is not
aware of container CPU limits.
args:
type: string
default: ''
description: |
Arguments to pass to golangci-lint
executor: << parameters.executor >>
steps:
- install-deps
@ -118,15 +123,16 @@ jobs:
name: Lint
command: |
golangci-lint run -v \
--concurrency << parameters.concurrency >>
--concurrency << parameters.concurrency >> << parameters.args >>
workflows:
version: 2
ci:
jobs:
- lint
- lint:
golangci-lint-version: 1.17.1
args: "--no-config --exclude-use-default=false --disable-all --enable golint"
- test:
codecov-upload: true
- mod-tidy-check

View File

@ -20,6 +20,7 @@ issues:
exclude:
- "func name will be used as test\\.Test.* by other packages, and that stutters; consider calling this"
- "Potential file inclusion via variable"
- "should have comment or be unexported"
exclude-use-default: false
exclude-rules: