mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
docs: remove allow-leading-space option (#3072)
This commit is contained in:
parent
235df6ef48
commit
7fdb723b16
5 changed files with 0 additions and 7 deletions
|
@ -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: [ ]
|
||||
|
|
|
@ -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
|
||||
|
|
1
test/testdata/fix/in/nolintlint.go
vendored
1
test/testdata/fix/in/nolintlint.go
vendored
|
@ -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"
|
||||
|
|
1
test/testdata/fix/out/nolintlint.go
vendored
1
test/testdata/fix/out/nolintlint.go
vendored
|
@ -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"
|
||||
|
|
1
test/testdata/nolintlint.go
vendored
1
test/testdata/nolintlint.go
vendored
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue