LUCENE-9713: exclude .idea/ (sync with Solr's version).

This commit is contained in:
Dawid Weiss 2021-09-30 15:19:19 +02:00
parent 3aa0676194
commit 93c66e1400
1 changed files with 2 additions and 1 deletions

View File

@ -79,6 +79,7 @@ subprojects {
// default excludes. // default excludes.
exclude 'build/**' exclude 'build/**'
exclude '**/.idea/**'
// ignore txt files in source resources and tests. // ignore txt files in source resources and tests.
exclude 'src/**/*.txt' exclude 'src/**/*.txt'
@ -248,7 +249,7 @@ class ValidateSourcePatternsTask extends DefaultTask {
logger.debug('Scanning source file: {}', f); logger.debug('Scanning source file: {}', f);
def text = f.getText('UTF-8'); def text = f.getText('UTF-8');
invalidPatterns.each{ pattern,name -> invalidPatterns.each { pattern, name ->
if (pattern.matcher(text).find()) { if (pattern.matcher(text).find()) {
reportViolation(f, name); reportViolation(f, name);
} }