diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 17:41:53 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 20:06:54 -0700 |
commit | b6ec0ce387b0a3d9fb6f58ba43ca27943f99fb93 (patch) | |
tree | 59113a3072226944c2cd862940a8fbc09624b514 | |
parent | db54166991304220303ee1de8e06292c4c0a4e3c (diff) |
lint: Turn on dogsled
-rw-r--r-- | .golangci.yml | 1 | ||||
-rw-r--r-- | lib/textui/log.go | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.golangci.yml b/.golangci.yml index bf04a40..ea06c75 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -25,7 +25,6 @@ linters: # These are disabled not because I think they're bad, but because # they currently don't pass, and I haven't evaluated them yet. - cyclop - - dogsled - dupword - errorlint - exhaustive diff --git a/lib/textui/log.go b/lib/textui/log.go index 5ddc7a8..bc8b159 100644 --- a/lib/textui/log.go +++ b/lib/textui/log.go @@ -1,5 +1,5 @@ // Copyright (C) 2019-2022 Ambassador Labs -// Copyright (C) 2022 Luke Shumaker <lukeshu@lukeshu.com> +// Copyright (C) 2022-2023 Luke Shumaker <lukeshu@lukeshu.com> // // SPDX-License-Identifier: Apache-2.0 // @@ -159,6 +159,7 @@ var ( ) func init() { + //nolint:dogsled // I can't change the signature of the stdlib. _, file, _, _ := runtime.Caller(0) thisModDir = filepath.Dir(filepath.Dir(filepath.Dir(file))) } |