[#7] pre-commit: Add golangci-lint hook

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-03-07 10:00:03 +03:00
parent d6b4e69399
commit feab143fe5
2 changed files with 6 additions and 1 deletions

View file

@ -17,3 +17,8 @@ repos:
args: [--markdown-linebreak-ext=md] args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer - id: end-of-file-fixer
exclude: ".key$" exclude: ".key$"
- repo: https://github.com/golangci/golangci-lint
rev: v1.51.2
hooks:
- id: golangci-lint

View file

@ -11,7 +11,7 @@ package gf127
import "golang.org/x/sys/cpu" import "golang.org/x/sys/cpu"
// x127x63 represents x^127 + x^63 // 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. // Add sets c to a+b.
func Add(a, b, c *GF127) { func Add(a, b, c *GF127) {