Skip to content
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

Single project opened at the root, but want to select a separate file #152

Open
loganintech opened this issue Nov 27, 2023 · 5 comments
Open

Comments

@loganintech
Copy link

loganintech commented Nov 27, 2023

Hi, my project has two golangci-lint files.

.golangci.yml and .golangci.dev.yml file. I would like to select the .dev.yml file for the plugin. In the README it seems like I should be able to select a file, but in the actual settings window it doesn't let me. Was that feature removed?

I'm using the latest plugin version (1.6.6) and GoLand 2023.2.5

@loganintech loganintech changed the title Single project opened at the root, but want to select a sepparate file Single project opened at the root, but want to select a separate file Nov 27, 2023
@xxpxxxxp
Copy link
Owner

Hi @loganintech , that's a bit awkward, when the plugin detects a .golangci.yml file under project, it smartly pick it up as config file and hide the config select button. It doesn't fit with your case. Any possiblity that you remove .golangci.yml?

@loganintech
Copy link
Author

Highly unlikely, we need the default .golangci.yml for our pipeline. Is there a reason we have to have the option hidden?

@xxpxxxxp
Copy link
Owner

That's exactly the reason, in most cases people use the default .golangci.yml for CI pipeline, they would want the plugin show the exact hints as the CI pipeline does, so the plugin automatically picks up the default config.

@loganintech
Copy link
Author

Would it be possible to make it so that if the plugin sees multiple files that start with .golangci it'll not hide the option to choose another file? The plugin could default to choosing the standard .golangci.yml so that nobody will have to change anything, but others would still have the option to pick a different file?

@xxpxxxxp
Copy link
Owner

xxpxxxxp commented Dec 6, 2023

OK, I'll put that into refactor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants