Skip to content

exclude patterns not working #5

@jlowin

Description

@jlowin

On version 0.1.0a3, exclude patterns don't seem to have any effect.

Config:

default_max_lines = 1000
respect_gitignore = true

exclude = [
    "**/uv.lock",
    ".git/**",
    "docs/**",
]

Expected: Files in docs/ should be excluded from checking.

Actual: loq still reports violations for docs files:

✖  1_040 > 1_000  docs/servers/tools.mdx
✖  2_280 > 1_000  docs/changelog.mdx

Also tried "docs/" without the glob suffix - same result.

Running with -v shows .git files are also being scanned (skipped as binary, but not excluded).

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