Refactoring: change "// BUNCH: xxx" format
It wasn't obvious how to use this comment properly. Now it should be clear
This commit is contained in:
committed by
Nikita Bobko
parent
b34fe77760
commit
aa5a5c954f
@@ -138,7 +138,7 @@ class CodeConformanceTest : TestCase() {
|
||||
for (sourceFile in FileUtil.findFilesByMask(SOURCES_BUNCH_FILE_PATTERN, root)) {
|
||||
if (EXCLUDED_FILES_AND_DIRS.any { FileUtil.isAncestor(it, sourceFile, false) }) continue
|
||||
|
||||
val matches = Regex("BUNCH: (\\w+)").findAll(sourceFile.readText())
|
||||
val matches = Regex("BUNCH (\\w+)").findAll(sourceFile.readText())
|
||||
.map { it.groupValues[1] }.toSet().filterNot { it in extensions }
|
||||
for (bunch in matches) {
|
||||
val filename = FileUtil.toSystemIndependentName(sourceFile.absoluteFile.toRelativeString(root))
|
||||
|
||||
Reference in New Issue
Block a user