-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to read .golangci.yml from a location other than PROJECT_ROOT #64
Comments
I would gladly implement the feature. A few questions for helping me design the functionality and configuration UI:
|
@xxpxxxxp thanks for the swift reply
Yes, we use Gitlab CI/CD. At the QA stage a docker build is performed which runs
If it is required to have |
Got you, I'm considering adding a config file override option, ETA in 2 weeks. |
Publishing support for custom config file, pending JetBrains approval, expected available in one day. |
The latest release should resolve this issue, I'm closing it. Feel feel to reopen it if necessary. |
Sorry, for the delay in reply. I have tested the new version and I just wanted to confirm it works as expected. Thank you very much for covering this! There are two points I'd like to point out which may be useful for future matters on the topic:
|
I have read issues #43 & #41 and as far as I understand this, the file
.golangci.yml
must be located inPROJECT_ROOT
. I am wondering whether or not it is possible though to read.golangci.yml
from a different location other thanPROJECT_ROOT
. If not, I'd like to raise this as a feature request.Usage scenario: We have multiple go projects under git version control for which we would like to apply a single source of
.golangci.yml
to all projects. Thus, we keep the config file in a separate git repo where each go project is connected to it by adding the repo as a git submodule to the project. For example, in our case the config file is located atgo-linting/.golangci.yml
underPROJECT_ROOT
.The text was updated successfully, but these errors were encountered: