diff --git a/.github/.golangci.yml b/.github/.golangci.yml index 9e5452da0d6..c7372ec4129 100644 --- a/.github/.golangci.yml +++ b/.github/.golangci.yml @@ -29,11 +29,14 @@ linters: disable: - fieldalignment forbidigo: + analyze-types: true forbid: - pattern: time.Sleep msg: "Please use require.Eventually or assert.Eventually instead unless you've no other option" - pattern: panic msg: "Please avoid using panic in application code" + - pattern: 'require\.Assertions' + msg: "use require functions directly instead of require.Assertions" importas: # Enforce the aliases below. no-unaliased: true