From b6ec0ce387b0a3d9fb6f58ba43ca27943f99fb93 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 1 Jan 2023 17:41:53 -0700 Subject: lint: Turn on dogsled --- .golangci.yml | 1 - 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 +// Copyright (C) 2022-2023 Luke Shumaker // // 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))) } -- cgit v1.1-4-g5e80