Skip to content

[FEATURE]: Allow exclude_tags/include_tags in [[overrides]] #307

Description

@SLUCHABLUB

Feature Description

You can use tag-based filtering for specific files:

[[overrides]]
paths = [ "foo" ]
include_tags = [ "comments" ] # Only check comments in the foo file.

[[overrides]]
paths = [ "bar" ]
exclude_tags = [ "strings" ] # Don't check strings in the bar file.

Use Case

I wanted to not have codebook lint the words in it's config, but still have it lint comments in the config:

[[overrides]]
paths = [ "codebook.toml" ]
exclude_tags = [ "string" ]

But this didn't work.

Proposed Solution

You could probably also want extra_exclude_tags/extra_include_tags to mirror how the other fields work.

Alternative Solutions

My proposed usecase could also be hardcoded. It doesn't really make sense for codebook to lint it's own dictionary.

Examples

No response

Additional Context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions