From feab143fe517e1140845624fc44cf9a783c514c5 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 7 Mar 2023 10:00:03 +0300 Subject: [PATCH] [#7] pre-commit: Add golangci-lint hook Signed-off-by: Evgenii Stratonikov --- .pre-commit-config.yaml | 5 +++++ gf127/gf127_amd64.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) {