From b10f4f86fee2ee66989bdf2d0d0229855c12000a Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Date: Tue, 18 Apr 2023 15:49:42 +0300 Subject: [PATCH] Upgrade linter and enable automatic updates This upgrades the linter version we reference in the makefile and enables automatic updates powered by renovate. Signed-off-by: Juan Antonio Osorio --- .golangci.yml | 1 - Makefile | 2 +- renovate.json | 12 ++++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 1ad45784..c733901e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -175,7 +175,6 @@ linters-settings: - hexLiteral - httpNoBody - ifElseChain - - ioutilDeprecated - methodExprCall - newDeref - octalLiteral diff --git a/Makefile b/Makefile index 9aa25da3..83df1495 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -GOLANGCI_LINT_VERSION = v1.51.2 +GOLANGCI_LINT_VERSION = v1.52.2 TOOLS_DIR = .tools diff --git a/renovate.json b/renovate.json index 39a2b6e9..926ec627 100644 --- a/renovate.json +++ b/renovate.json @@ -2,5 +2,17 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ "config:base" + ], + "regexManagers": [ + { + "fileMatch": [ + "^Makefile$" + ], + "matchStrings": [ + "GOLANGCI_LINT_VERSION = (?.*?)\\n" + ], + "datasourceTemplate": "docker", + "depNameTemplate": "golangci/golangci-lint" + } ] }