From 70f28e9126062bf5b2760219ec1aa107f6f6288b Mon Sep 17 00:00:00 2001 From: kevindiu Date: Fri, 14 Jul 2023 06:08:51 +0000 Subject: [PATCH] update golangci rule Signed-off-by: kevindiu --- .golangci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 72c0f5908ce..d5b4709ea2f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -149,6 +149,9 @@ linters: - path: internal/errors/errors_benchmark_test\.go linters: - depguard + - path: internal/test/comparator/standard\.go + linters: + - depguard linters-settings: gocritic: enabled-checks: @@ -176,6 +179,10 @@ linters-settings: desc: "errors is allowed only by internal/errors" - pkg: github.com/go-errors/errors desc: "errors is allowed only by internal/errors" + - pkg: github.com/google/go-cmp/cmp + desc: "cmp is allowed only by internal/test/comparator" + - pkg: github.com/google/go-cmp/cmp/cmpopts + desc: "cmpopts is allowed only by internal/test/comparator" govet: check-shadowing: true enable-all: true