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

.golangci.reference.yml validation #3613

Closed
wants to merge 2 commits into from

Conversation

pohly
Copy link
Contributor

@pohly pohly commented Feb 18, 2023

I recently (see #3612) worked on configuration changes that touched the reader. I found no unit test for it, so I added one with the .golangci.reference.yml file as input.

The positive side effect is that putting something invalid there now gets flagged during testing. The negative effect is that invalid configuration entries must be commented out, which makes it a bit less readable.

govet cannot have both disable-all+enable and enable-all+disable.
This ensures that changes made to the reader don't break parsing of the
reference configuration.
@ldez
Copy link
Member

ldez commented Feb 18, 2023

Hello,

sorry but the reference can not be handled like that.

I don't think we need to validate the reference, and the reference by the exhaustivity is invalid by nature.

@ldez ldez closed this Feb 18, 2023
@ldez ldez added the declined label Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants