You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm migrating from gometalinter which will probably be discontinued soon.
The syntax used by gometalinter to disable specific / all linters is as follows (see their README, GitHub doesn't allow linking to lines in Markdown files):
// nolint[: <linter>[, <linter>, ...]]
whereas this project uses the following syntax:
//nolint[:linter1,linter2,...]
Both currently seem to be supported by golangci-lint but that might not be intentional.
Which of the following forms are officially supported?
// nolint[: <linter>[, <linter>, ...]]
// nolint[:<linter>[,<linter>,...]]
//nolint[: <linter>[, <linter>, ...]]
//nolint[:<linter>[,<linter>,...]]
The text was updated successfully, but these errors were encountered:
Hi!
All of these forms are supported for compatibility with the gometalinter. But the only one mentioned in the README is //nolint[:linter1,linter2,...] because it's the recommended one.
I'm migrating from gometalinter which will probably be discontinued soon.
The syntax used by gometalinter to disable specific / all linters is as follows (see their README, GitHub doesn't allow linking to lines in Markdown files):
// nolint[: <linter>[, <linter>, ...]]
whereas this project uses the following syntax:
//nolint[:linter1,linter2,...]
Both currently seem to be supported by
golangci-lint
but that might not be intentional.Which of the following forms are officially supported?
// nolint[: <linter>[, <linter>, ...]]
// nolint[:<linter>[,<linter>,...]]
//nolint[: <linter>[, <linter>, ...]]
//nolint[:<linter>[,<linter>,...]]
The text was updated successfully, but these errors were encountered: