Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
nikandfor committed Nov 11, 2023
1 parent 1022800 commit fc38828
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 21 deletions.
39 changes: 20 additions & 19 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,26 @@ linters-settings:
min-len: 2
min-occurrences: 3
depguard:
list-type: whitelist
packages:
- github.com/beorn7/perks/quantile
- github.com/getsentry/sentry-go
- github.com/gin-gonic/gin
- github.com/nikandfor/cli
- github.com/nikandfor/errors
- github.com/nikandfor/goid
- github.com/nikandfor/loc
- github.com/nikandfor/quantile
- github.com/nikandfor/tlog
- github.com/opentracing/opentracing-go
- github.com/prometheus/client_golang
- github.com/prometheus/client_model
- github.com/stretchr/testify/assert
- github.com/stretchr/testify/require
- go.opentelemetry.io/otel
- golang.org/x
- gopkg.in/fsnotify.v1
rules:
main:
allow:
- $gostd
- github.com/beorn7/perks/quantile
- github.com/getsentry/sentry-go
- github.com/gin-gonic/gin
- github.com/nikandfor/cli
- github.com/nikandfor/errors
- github.com/nikandfor/goid
- github.com/nikandfor/loc
- github.com/nikandfor/quantile
- github.com/nikandfor/tlog
- github.com/opentracing/opentracing-go
- github.com/prometheus/client_golang
- github.com/prometheus/client_model
- github.com/stretchr/testify
- go.opentelemetry.io/otel
- golang.org/x
- gopkg.in/fsnotify.v1
misspell:
lll:
line-length: 170
Expand Down
2 changes: 1 addition & 1 deletion location_stack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func innerFuncName(fn PC, n int) string {
s += "."
}

s += fmt.Sprintf("%v", 1)
s += "1"
}
}

Expand Down
3 changes: 2 additions & 1 deletion location_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ func TestCaller(t *testing.T) {
a, b := Caller(0),
Caller(0)

assert.False(t, a == b, "%x == %x", uintptr(a), uintptr(b))
// assert.False(t, a == b, "%x == %x", uintptr(a), uintptr(b))
assert.NotEqual(t, a, b)
}

func TestSetCache(t *testing.T) {
Expand Down

0 comments on commit fc38828

Please sign in to comment.