Skip to content

customize indexing with exclusion patterns#1

Merged
san-zrl merged 3 commits intomainfrom
feat/customize-exclusion-from-indexing
Jul 24, 2025
Merged

customize indexing with exclusion patterns#1
san-zrl merged 3 commits intomainfrom
feat/customize-exclusion-from-indexing

Conversation

@san-zrl
Copy link
Contributor

@san-zrl san-zrl commented Jul 23, 2025

PR for issue #29

  • Replaced exclusion predicate with customizable patterns
  • Matching is performed on relative paths w.r.t project directory
  • Exclude file/dir from indexing if any pattern matches
  • <indexer>.setExclusionPatterns(List<String> patterns) sets patterns
    • Patterns are java regexes that match on the first occurrence
    • Default patterns
      • Python src/test/, tests/
      • Java src/test/, /package-info.java$, /module-info.java$
    • Passing null -> re-establish default
    • Passing empty list means no exclusion -> index everything

Signed-off-by: san-zrl <san@zurich.ibm.com>
@san-zrl san-zrl requested review from a team and n1ckl0sk0rtge and removed request for a team July 23, 2025 09:43
@san-zrl san-zrl self-assigned this Jul 23, 2025
@san-zrl san-zrl added the enhancement New feature or request label Jul 23, 2025
san-zrl added 2 commits July 23, 2025 14:01
Signed-off-by: san-zrl <san@zurich.ibm.com>
Signed-off-by: san-zrl <san@zurich.ibm.com>
@san-zrl san-zrl merged commit 2910746 into main Jul 24, 2025
3 checks passed
@san-zrl san-zrl deleted the feat/customize-exclusion-from-indexing branch July 24, 2025 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant