nametake / golangci-lint-langserver

golangci-lint language server
MIT License
221 stars 20 forks source link

Add an option to run golangci-lint from the directory of config file #31

Open misha-ridge opened 1 year ago

misha-ridge commented 1 year ago

golangci-lint has issues running in subdirectories of the project, e.g. golangci/golangci-lint#3656, golangci/golangci-lint#3717, so running it from the directory where configuration file is located is the only option for some projects.

Make it work as an option, because not every project triggers this problem in golangci-lint, so for these projects overhead of looking up directory of config file and adjusting the paths after is not needed.

misha-ridge commented 1 year ago

I will gladly remove the option and make -from-config-dir the default if you wish to.

stan-stately commented 4 days ago

i'd really like this feature