Skip to content

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

Open
@gannett-ggreer

Description

@gannett-ggreer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions