Skip to content

Commit

Permalink
docs: remove allow-leading-space option (golangci#3072)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored and SeigeC committed Apr 4, 2023
1 parent d28ed37 commit daa9fb5
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .golangci.reference.yml
Expand Up @@ -1184,9 +1184,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

0 comments on commit daa9fb5

Please sign in to comment.