From bc425b5bad7871aba7efd43b93ed3f329caa4456 Mon Sep 17 00:00:00 2001 From: Alexander Chuprov Date: Mon, 14 Aug 2023 15:53:34 +0300 Subject: [PATCH] [#608] pre-commit: Fix linter Signed-off-by: Alexander Chuprov --- .golangci.yml | 2 +- .pre-commit-config.yaml | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 845ab2202..6741f1278 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -40,7 +40,7 @@ linters-settings: custom: noliteral: path: bin/external_linters.so - original-url: git.frostfs.info/TrueCloudLab/linters.git + original-url: git.frostfs.info/TrueCloudLab/linters.git settings: target-methods : ["reportFlushError", "reportError"] disable-packages: ["codes", "err", "res","exec"] diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3d9b2b8f2..f891f8860 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,10 +30,13 @@ repos: hooks: - id: shellcheck - - repo: https://github.com/golangci/golangci-lint - rev: v1.52.2 + - repo: local hooks: - - id: golangci-lint + - id: make-lint + name: Run Make Lint + entry: make lint + language: system + pass_filenames: false - repo: local hooks: