mirror of https://github.com/apache/lucene.git
LUCENE-9713: exclude .idea/ (sync with Solr's version).
This commit is contained in:
parent
3aa0676194
commit
93c66e1400
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue