diff options
author | Karthik Nayak <knayak@gitlab.com> | 2022-10-04 10:50:30 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-10-10 16:46:35 +0300 |
commit | 58fe50f7aeedd388d8990f2835cf42f485bebf21 (patch) | |
tree | 6c85593742dc0c5e5182d4123e6e32997b3b194c /auth | |
parent | 884ce282aac6ca811a541f3ab2debfc5b8b357c1 (diff) |
lint: Remove space after `nolint:`
With recent changes `gofmt` [1] started reformatting godoc comments.
This causes a problem wherein it reformats `//nolint: staticcheck` to
`// nolint: staticcheck`.
But it does ignore directives [2]. So let's change all our nolint to
directive format. This avoids the conflict with `gofmt`.
This fix was done by running `grep -r --include="*.go" -E "//nolint:
.*"` and manually fixing the issues.
[1]:
https://github.com/golangci/golangci-lint/issues/1658#issuecomment-1183148066
[2]:
https://github.com/golangci/golangci-lint/issues/3098#issuecomment-1214364533
Diffstat (limited to 'auth')
-rw-r--r-- | auth/token.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/token.go b/auth/token.go index d38f3ccee..7a32b8c78 100644 --- a/auth/token.go +++ b/auth/token.go @@ -18,7 +18,7 @@ import ( ) var ( - //nolint: gochecknoglobals + //nolint:gochecknoglobals // This infrastructure is required for testing purposes and there is no // proper place to put it instead. While we could move it into the // config, we certainly don't want to make it configurable for now, so |