Skip to content

Commit 94cb82e

Browse files
author
Stephan Brandauer
committed
remove TestFileCharacteristic as it's redundant
1 parent d7aca9e commit 94cb82e

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

java/ql/src/Telemetry/AutomodelFrameworkModeCharacteristics.qll

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -221,23 +221,6 @@ private class ExceptionCharacteristic extends CharacteristicsImpl::NotASinkChara
221221
}
222222
}
223223

224-
/**
225-
* A negative characteristic that indicates that an endpoint sits in a test file.
226-
*/
227-
private class TestFileCharacteristic extends CharacteristicsImpl::LikelyNotASinkCharacteristic {
228-
TestFileCharacteristic() { this = "test file" }
229-
230-
override predicate appliesToEndpoint(Endpoint e) {
231-
exists(File f | f = e.getLocation().getFile() and isInTestFile(f))
232-
}
233-
234-
private predicate isInTestFile(File file) {
235-
file.getAbsolutePath().matches("%src/test/%") or
236-
file.getAbsolutePath().matches("%/guava-tests/%") or
237-
file.getAbsolutePath().matches("%/guava-testlib/%")
238-
}
239-
}
240-
241224
/**
242225
* A characteristic that limits candidates to parameters of methods that are recognized as `ModelApi`, iow., APIs that
243226
* are considered worth modeling.

0 commit comments

Comments
 (0)