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

Skip deprecated warning for now, adopting new neo-go API will be done in
another task.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
OBJECT-1145_wallet-pouring-for-ir
Evgenii Stratonikov 2023-03-02 14:06:56 +03:00 committed by Gitea
parent a4931ea4c7
commit 0893689c6a
2 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,8 @@ linters-settings:
govet:
# report about shadowed variables
check-shadowing: false
staticcheck:
checks: ["all", "-SA1019"] # TODO Enable SA1019 after deprecated warning are fixed.
linters:
enable:

View File

@ -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