Skip to content

Commit

Permalink
Update the linter and fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
na-- committed May 21, 2020
1 parent 6e4ea20 commit 473f934
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- image: circleci/golang:1.14
environment:
GOPATH: /home/circleci/.go_workspace
GOLANGCI_VERSION: v1.25.0
GOLANGCI_VERSION: v1.27.0
working_directory: /home/circleci/.go_workspace/src/github.com/loadimpact/k6
steps:
# Workaround for custom env vars not available in cache keys
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ linters:
- testpackage
- wsl
- gomnd
- goerr113 # most of the errors here are meant for humans
fast: false
2 changes: 1 addition & 1 deletion core/local/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import (
)

func newTestExecutionScheduler(
t *testing.T, runner lib.Runner, logger *logrus.Logger, opts lib.Options, //nolint: golint
t *testing.T, runner lib.Runner, logger *logrus.Logger, opts lib.Options,
) (ctx context.Context, cancel func(), execScheduler *ExecutionScheduler, samples chan stats.SampleContainer) {
if runner == nil {
runner = &minirunner.MiniRunner{}
Expand Down
2 changes: 1 addition & 1 deletion lib/executor/executors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type configMapTestCase struct {
expected exp
}

//nolint:lll,gochecknoglobals
//nolint:gochecknoglobals
var configMapTestCases = []configMapTestCase{
{"", exp{parseError: true}},
{"1234", exp{parseError: true}},
Expand Down

0 comments on commit 473f934

Please sign in to comment.