Repository navigation
Fix #87 Add --ignore-domains-file to load ignore domain patterns from a file - #198
prakhar2000 wants to merge 1 commit into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #198 +/- ##
==========================================
+ Coverage 49.89% 51.12% +1.22%
==========================================
Files 9 9
Lines 487 491 +4
Branches 107 112 +5
==========================================
+ Hits 243 251 +8
+ Misses 244 240 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Thanks for the contribution, Prakhar! I went through the PR and the feature itself is correctly implemented — I verified the parsing, the merge, and the filtering, and the new tests pass. A few things worth addressing before this lands:
Happy to help if you'd like to iterate on this — items 2, 4, and 5 are quick wins, and 1/3 would make the wiring genuinely tested. |
Mirrors --scan-file / --exclude-file so large allowlists can be versioned instead of passed on the CLI. Patterns from the file are appended to --ignore-domains (and, like other CLI flags, override the config file's ignoreDomains). Unlike the scan/exclude pattern files, the file is also honoured in --stdin-language mode. Co-authored-by: Cursor <cursoragent@cursor.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16d20f8 to
e22efef
Compare
|
Thanks for the thorough review, @bingenito ! :
How the file combines with other options: its patterns are added to One side effect: trailing-comment handling now also applies to Build, lint and the full test suite (180 tests) pass locally, and all new and changed lines are covered. Could you approve the CI workflows for the new commit? Happy to make further changes if needed. |
Checking again, we'll worry about the DCO once everything is good. If you want to get a jump start looking at the contributing guide. Our DCO isn't as straightforward as signed commits, you'll need to include a file with first contribution and then refer to that on every commit message moving forward. |
Fixes #87
--ignore-domains-file <file>so domain ignore patterns can be loaded from a file instead of listing them all on the CLI.--scan-file/--exclude-fileloader: one pattern per line,#comments and blank lines skipped.--ignore-domainsand passed through asignoreDomains. No changes tourlFilter.tswere needed.