From fdcfdb5b8b71e2605eaca43e2546126e87582857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edu=20G=C3=B3mez=20Escandell?= Date: Thu, 14 Sep 2023 16:01:45 +0200 Subject: [PATCH 1/6] Enable duplword linter --- .golangci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yaml b/.golangci.yaml index d948928e8..fa7285ecc 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -5,6 +5,7 @@ linters: # linters to run in addition to default ones enable: - dupl + - dupword - durationcheck - errname - errorlint From e563e1a125c4d2eb328769c32757ef9574339a9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edu=20G=C3=B3mez=20Escandell?= Date: Thu, 14 Sep 2023 16:26:40 +0200 Subject: [PATCH 2/6] Fix duplword errors --- agentapi/generator_windows.go | 2 +- windows-agent/internal/config/config_test.go | 2 +- windows-agent/internal/distros/worker/worker_test.go | 4 ++-- .../proservices/landscape/distroinstall/distroinstall.go | 2 +- windows-agent/internal/proservices/ui/ui_test.go | 2 +- wsl-pro-service/internal/daemon/daemon.go | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/agentapi/generator_windows.go b/agentapi/generator_windows.go index 8e9044498..fcbd86848 100644 --- a/agentapi/generator_windows.go +++ b/agentapi/generator_windows.go @@ -3,4 +3,4 @@ package agentapi //go:generate wsl -- bash -c "source ~/.profile && ./generate.sh" -// Sourcing.profile because wsl --