intellij-plugin-golangci-lint icon indicating copy to clipboard operation
intellij-plugin-golangci-lint copied to clipboard

multiple projects and specific `Project Root` for each project

Open jerome-laforge opened this issue 3 years ago • 4 comments

It is not possible to define for each intellij project their own Project Rootthat is contained .golangci config file (each project has own golangci config file). If I modify the Project Root for one Go projet, all other Go project has the same.

jerome-laforge avatar Jul 21 '22 15:07 jerome-laforge

Sorry, I didn't get what your means, would a per-intellij instance config solve your issue?

xxpxxxxp avatar Jul 25 '22 04:07 xxpxxxxp

Sorry if I was not enough clear.

I have two projects (or more) within intellij. For example:

- /home/user/myProject1/ (.idea is in this directory)
                                     ./src/ (.golangci.yml for this project is in this directory)
- /home/user/myProject2/ (.idea is in directory)
                                     ./src/ (.golangci.yml for this project is in this directory)

the .golangci.yml from myProject1 is not the same of myProject2.

For myProject1, if you configure Project Root the plugin golangci-lint for pointing to /home/user/myProject1/src that will affect also config for myProject2. But I want different Project Root for each project.

debug

jerome-laforge avatar Jul 25 '22 09:07 jerome-laforge

Ah got it. So basically a project-based config should solve the problem, right? I'm working on such change, ETA 2 weeks, sorry for the inconvenience.

xxpxxxxp avatar Jul 25 '22 16:07 xxpxxxxp

a project-based config should solve the problem, right?

yes, it is.

jerome-laforge avatar Jul 25 '22 16:07 jerome-laforge

Per project config is supported in latest release.

xxpxxxxp avatar Aug 24 '22 10:08 xxpxxxxp

It works like a charm.

jerome-laforge avatar Aug 24 '22 15:08 jerome-laforge