Skip to content

Commit

Permalink
update golangci-lint rules (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRoesler authored Apr 23, 2023
1 parent 268ca33 commit 254a953
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ linters:
- bodyclose
- errcheck
- gofmt
- revive
- gofumpt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- revive
- staticcheck
- typecheck
- unused
Expand All @@ -44,3 +46,5 @@ output:
linters-settings:
golint:
min-confidence: 0.8

fix: true
1 change: 0 additions & 1 deletion executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,4 @@ func Test_ExecutorPanicHandling(t *testing.T) {

state := <-panicHandled
assert.Equal(t, state, true)

}
1 change: 0 additions & 1 deletion gocron_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ func Test_callJobFuncWithParams(t *testing.T) {
if err != nil && !tt.err {
t.Fatalf("unexpected panic: %s", err.Error())
}

})
}
}
Expand Down
3 changes: 1 addition & 2 deletions scheduler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ func TestScheduler_Stop(t *testing.T) {
t.Parallel()
s := NewScheduler(time.UTC)
job, _ := s.Every(3).Second().Do(func() {
//noop
// noop
})
s.StartAsync()
time.Sleep(time.Second) // enough time for job to run
Expand Down Expand Up @@ -2546,5 +2546,4 @@ func TestScheduler_ChainOrder(t *testing.T) {
for i, j := range s.jobs {
assert.Equal(t, fmt.Sprint(funcs[i]), fmt.Sprint(j.function))
}

}

0 comments on commit 254a953

Please sign in to comment.