From 811652469a1ca241188d41cf3bf48b7d3531a4f2 Mon Sep 17 00:00:00 2001 From: Gijs van Dam Date: Thu, 4 Apr 2024 14:04:35 +0200 Subject: [PATCH] golangci: add `new-from-rev` flag This flag allows to run linters only on the files changed since the given revision. Since we can assume that the code adheres to linting standards before said revision, this ensures that new code adheres to the aditional restrictions from `lll`. --- .golangci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yml b/.golangci.yml index 5a0914b1e..dba4dca9f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -73,3 +73,4 @@ issues: - unused - deadcode - varcheck + new-from-rev: c118c9095a3175d1d311fa9bf6555b44aa8d3912