Skip to content

Allow ignore-from-file and ignore keys #783

@cdwilson

Description

@cdwilson

I'm currently using a .yamlignore file to ignore a couple files in addition to the files ignored from .gitignore.

ignore-from-file:
  - .gitignore
  - .yamlignore

While this works, I'd really like to avoid having a separate file and just include these extra ignores as a list under the ignore key in my .yamllint file.

ignore-from-file: .gitignore

ignore:
  - .clang-format
  - pm_static.yml

The documentation mentions that ignore-from-file is mutually exclusive with the ignore key, but I didn't see any explanation of why. Would it be possible to change the behavior to allow both of these keys to be specified simultaneously?

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