Skip to content

Commit 096ca99

Browse files
committed
fix: treemapperignore now properly takes precedence over gitignore
- Fixed pattern order: .gitignore first, then .treemapperignore - Added 50 comprehensive tests covering all documented features - Tests for all default ignore patterns (JS, Java, Go, .NET, IDE, OS) - Tests for CLI features, Python API edge cases, content placeholders - Tests for hierarchical ignore files and precedence rules
1 parent f431f4d commit 096ca99

File tree

2 files changed

+770
-1
lines changed

2 files changed

+770
-1
lines changed

src/treemapper/ignore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ def get_ignore_specs(
132132

133133
if not no_default_ignores:
134134
patterns.extend(DEFAULT_IGNORE_PATTERNS)
135-
patterns.extend(_aggregate_ignore_patterns(root_dir, ".treemapperignore"))
136135
patterns.extend(_aggregate_ignore_patterns(root_dir, ".gitignore"))
136+
patterns.extend(_aggregate_ignore_patterns(root_dir, ".treemapperignore"))
137137

138138
if custom_ignore_file:
139139
patterns.extend(read_ignore_file(custom_ignore_file))

0 commit comments

Comments
 (0)