You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import (
"log""time"
)
funcmain() {
log.Println(24*time.Hour) // reportedlog.Println(1*24*time.Hour) // not reported
}
Steps to reproduce the behavior
(See above)
go-mnd version or commit ref
Running as part of golangci-lint:
$ golangci-lint --versiongolangci-lint has version 1.54.2 built with go1.21.0 from 411e0bbb on 2023-08-21T12:04:32Z
Go version (output of 'go version')
$ go versiongo version go1.21.1 darwin/arm64
Operating system / Environment
macOS 13.5.2 (22G91)
Expected behavior
Consistency: either both are reported because they're both magic numbers, or none are reported because when multiplied with a Duration the meaning is clear.
Actual behavior
Only one of the lines is reported: the one with only one number multiplied with a Duration.
The text was updated successfully, but these errors were encountered:
Short summary
Steps to reproduce the behavior
(See above)
go-mnd version or commit ref
Running as part of
golangci-lint
:Go version (output of 'go version')
Operating system / Environment
macOS 13.5.2 (22G91)
Expected behavior
Consistency: either both are reported because they're both magic numbers, or none are reported because when multiplied with a Duration the meaning is clear.
Actual behavior
Only one of the lines is reported: the one with only one number multiplied with a Duration.
The text was updated successfully, but these errors were encountered: