Python: Use getAbsolutePath() instead of deprecated getName()

This commit is contained in:
Rasmus Wriedt Larsen
2020-04-08 16:46:33 +02:00
parent 6685a5ed4d
commit 32c04ad765
4 changed files with 5 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ class Copy extends @duplication_or_similarity {
predicate hasLocationInfo(
string filepath, int startline, int startcolumn, int endline, int endcolumn
) {
sourceFile().getName() = filepath and
sourceFile().getAbsolutePath() = filepath and
startline = sourceStartLine() and
startcolumn = sourceStartColumn() and
endline = sourceEndLine() and