Skip to content

docs: remove allow-leading-space option #3072

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

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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .golangci.reference.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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