From 2a49979382dc984c3204827bdb387a9dae137974 Mon Sep 17 00:00:00 2001 From: Yoan Blanc Date: Thu, 16 Dec 2021 08:47:07 +0100 Subject: [PATCH] fix: remove deprecated linters from golanci-lint Signed-off-by: Yoan Blanc --- .golangci.yml | 4 ++-- internal/dotwriter/writer_posix.go | 1 + internal/filewatcher/term_unix.go | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index a4f98808..8279d6d2 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -10,7 +10,7 @@ linters-settings: issues: exclude-use-default: false exclude-rules: - - linters: [golint] + - linters: [revive] text: 'should have comment .*or be unexported' - linters: [stylecheck] text: 'ST1000: at least one file in a package should have a package comment' @@ -33,7 +33,6 @@ linters: - gocyclo - gofmt - goimports - - golint - gosimple - govet - ineffassign @@ -42,6 +41,7 @@ linters: - misspell - nakedret - prealloc + - revive - staticcheck - structcheck - stylecheck diff --git a/internal/dotwriter/writer_posix.go b/internal/dotwriter/writer_posix.go index dd5b7bf2..9136866e 100644 --- a/internal/dotwriter/writer_posix.go +++ b/internal/dotwriter/writer_posix.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package dotwriter diff --git a/internal/filewatcher/term_unix.go b/internal/filewatcher/term_unix.go index 267b8c93..14c8af63 100644 --- a/internal/filewatcher/term_unix.go +++ b/internal/filewatcher/term_unix.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package filewatcher