diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9c6f604..46c9c89 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,3 +17,8 @@ repos: args: [--markdown-linebreak-ext=md] - id: end-of-file-fixer exclude: ".key$" + + - repo: https://github.com/golangci/golangci-lint + rev: v1.51.2 + hooks: + - id: golangci-lint diff --git a/gf127/gf127_amd64.go b/gf127/gf127_amd64.go index 186666a..f5fd04d 100644 --- a/gf127/gf127_amd64.go +++ b/gf127/gf127_amd64.go @@ -11,7 +11,7 @@ package gf127 import "golang.org/x/sys/cpu" // x127x63 represents x^127 + x^63 -var x127x63 = GF127{msb64, msb64} //nolint:deadcode,varcheck +var x127x63 = GF127{msb64, msb64} //nolint:unused // Add sets c to a+b. func Add(a, b, c *GF127) {