Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: remove allow-leading-space option #3072

Merged
merged 2 commits into from Aug 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 0 additions & 3 deletions .golangci.reference.yml
Expand Up @@ -1159,9 +1159,6 @@ linters-settings:
# Disable to ensure that all nolint directives actually have an effect.
# Default: false
allow-unused: true
# Disable to ensure that nolint directives don't have a leading space.
# Default: true
allow-leading-space: false
# Exclude following linters from requiring an explanation.
# Default: []
allow-no-explanation: [ ]
Expand Down
1 change: 0 additions & 1 deletion .golangci.yml
Expand Up @@ -61,7 +61,6 @@ linters-settings:
misspell:
locale: US
nolintlint:
allow-leading-space: false
allow-unused: false # report any unused nolint directives
require-explanation: false # don't require an explanation for nolint directives
require-specific: false # don't require nolint directives to be specific about which linter is being skipped
Expand Down
1 change: 0 additions & 1 deletion test/testdata/fix/in/nolintlint.go
@@ -1,6 +1,5 @@
//golangcitest:args -Enolintlint -Elll
//golangcitest:expected_linter nolintlint
//golangcitest:config linters-settings.nolintlint.allow-leading-space=false
package p

import "fmt"
Expand Down
1 change: 0 additions & 1 deletion test/testdata/fix/out/nolintlint.go
@@ -1,6 +1,5 @@
//golangcitest:args -Enolintlint -Elll
//golangcitest:expected_linter nolintlint
//golangcitest:config linters-settings.nolintlint.allow-leading-space=false
package p

import "fmt"
Expand Down
1 change: 0 additions & 1 deletion test/testdata/nolintlint.go
Expand Up @@ -2,7 +2,6 @@
//golangcitest:expected_linter nolintlint
//golangcitest:config linters-settings.nolintlint.require-explanation=true
//golangcitest:config linters-settings.nolintlint.require-specific=true
//golangcitest:config linters-settings.nolintlint.allow-leading-space=false
package testdata

import "fmt"
Expand Down