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

Your .golangci.yml has unrecognized field names. #215

Open
gannett-ggreer opened this issue Sep 5, 2024 · 1 comment
Open

Your .golangci.yml has unrecognized field names. #215

gannett-ggreer opened this issue Sep 5, 2024 · 1 comment

Comments

@gannett-ggreer
Copy link

What version of GCI are you using?

v0.13.5

Reproduce Steps

golangci-lint config verify

What did you expect to see?

No output.

What did you see instead?

jsonschema: "run.build-tags" does not validate with "/properties/run/properties/build-tags/type": expected array, but got null
jsonschema: "run" does not validate with "/properties/run/additionalProperties": additionalProperties 'deadline', 'skip-dirs', 'skip-files' not allowed
jsonschema: "output" does not validate with "/properties/output/additionalProperties": additionalProperties 'format' not allowed
jsonschema: "linters-settings.gci" does not validate with "/properties/linters-settings/properties/gci/additionalProperties": additionalProperties 'no-inline-comments', 'no-prefix-comments', 'section-separators' not allowed
jsonschema: "issues.exclude" does not validate with "/properties/issues/properties/exclude/type": expected array, but got null
Failed executing command with error: the configuration contains invalid elements

For this particular issue report I'm not really concerned with any of them except the linters-settings.gci errors since your own linting YAML should reflect the fields actually used by the linter module as people are likely to refer to it as authoritative to copy.

@daixiang0
Copy link
Owner

For those configs, GCI do not change for a long time, I think it is a layer issue and should be fixed in the Golangci-lint side.

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