Skip to content

BUG: exclusion doesn't work #2

@gagin

Description

@gagin
  1. Context
    ~/.config/codecat/config.toml
    ...
    exclude_patterns = [
    ".log", # Exclude all log files
    "sample-docs/
    ",
    "dist/", # Exclude build output directory contents
    "node_modules/
    ", # Exclude node_modules
    "venv/", # Exclude python virtual envs
    ".git/
    ", # Exclude git directory contents (often handled by gitignore too)
    "pycache/",
    ".pytest_cache/
    ",
    ".pyc",
    "
    .pyo",
    "temp/", # Exclude a directory named temp (relative to target)
    "specific_file_to_exclude.txt"
    ]
  2. Action: codecat -d backend -o backend.txt -x backend/test/sample-docs/
    or codecat -d backend -o backend.txt -x backend/test/sample-docs
  3. Observed: sample-docs and its files are still in tree printout and backend.txt

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions