Skip to content

missing config allow-leading-space for nolintlint #3063

Closed
@vincentscdc

Description

@vincentscdc

Welcome

  • Yes, I'm using a binary release within 2 latest major releases. Only such installations are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, etc).
  • Yes, I've tried with the standalone linter if available. (https://golangci-lint.run/usage/linters/)

Description of the problem

the setting allow-leading-space for nolintlint is not part of the NoLintLint settings

Version of golangci-lint

$ golangci-lint --version
# 1.48.0

Configuration file

$ cat .golangci.yml
[linters-settings.nolintlint]
require-explanation = true
require-specific = true
allow-leading-space = true

Go environment

$ go version && go env
# go1.19

Verbose output of running

$ golangci-lint cache clean
$ golangci-lint run -v
# unneeded

Code example or link to a public repository

// add your code here

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions