xxpxxxxp / intellij-plugin-golangci-lint

GolangCI-Lint integration for IDEA
GNU General Public License v3.0
223 stars 14 forks source link

Path setting across all projects #127

Closed huyz closed 1 year ago

huyz commented 2 years ago

Every time I open a new project, the plugin asks me to set the path for golangci-lint.

Can the setting be remembered and shared for all projects?

xxpxxxxp commented 2 years ago

Hi @huyz , sorry for that, I know it is frustrating, some people want different configurations per project (eg. #109 #115), so this 1-time pop-up is useful in such cases.

huyz commented 2 years ago

Is it possible to have the path for .golangci.yml be per-project while the path for golangci-lint be across all projects? That would satisfy everyone I think

huyz commented 2 years ago

Or maybe copy the per-project path golangci-lint to an across-projects default setting. Then whenever a new project is encountered, the across-projects default setting can be copied to the per-project path for this new project

xxpxxxxp commented 2 years ago

Good idea, the plugin can skip setup if

Otherwise, it would be better for user config the plugin for 1 time, as default linters are far from good for most cases.

dekimsey commented 1 year ago

there's golangci-lint exe in PATH

Was this implemented? I see the discussion about the changed occurred after the issue was closed. In my case the binary is in my PATH but it prompting on every load.

GoLand 2022.2.5 Go Linter 1.6.3

Thank you!

xxpxxxxp commented 1 year ago

@dekimsey sryI totally forgot this, doing now

xxpxxxxp commented 1 year ago

done, open a new project that has .golangci.yml under its path and a golangci-lint executable under $PATH will not show pop-up.

huyz commented 1 year ago

Thank you!