[CODEOWNERS] Remove depth limit since it doesn't change test running time much
This commit is contained in:
@@ -88,8 +88,6 @@ class SpaceCodeOwnersTest : TestCase() {
|
|||||||
owners: CodeOwners,
|
owners: CodeOwners,
|
||||||
val root: File
|
val root: File
|
||||||
) {
|
) {
|
||||||
private val fileWalkDepthLimit = 13
|
|
||||||
|
|
||||||
val matchers =
|
val matchers =
|
||||||
owners.patterns
|
owners.patterns
|
||||||
.map { ItemUse(it, FastIgnoreRule(it.pattern)) }
|
.map { ItemUse(it, FastIgnoreRule(it.pattern)) }
|
||||||
@@ -153,7 +151,6 @@ class SpaceCodeOwnersTest : TestCase() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun visitDirectory(directory: File, parentMatch: ItemUse?, depth: Int) {
|
fun visitDirectory(directory: File, parentMatch: ItemUse?, depth: Int) {
|
||||||
if (depth > fileWalkDepthLimit) return
|
|
||||||
val path = directory.path.replace(File.separatorChar, '/')
|
val path = directory.path.replace(File.separatorChar, '/')
|
||||||
|
|
||||||
if (ignoreTracker.isIgnored(path, isDirectory = true)) return
|
if (ignoreTracker.isIgnored(path, isDirectory = true)) return
|
||||||
|
|||||||
Reference in New Issue
Block a user