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