From bddce28b03cb58ccf4c3b99ed494b45c40ec5c67 Mon Sep 17 00:00:00 2001 From: David Marinho Date: Thu, 23 May 2024 16:38:19 +0100 Subject: [PATCH] allow path fixing to ignore case between codacy paths and provider paths --- .../scala/com/codacy/transformation/FileNameMatcher.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/com/codacy/transformation/FileNameMatcher.scala b/src/main/scala/com/codacy/transformation/FileNameMatcher.scala index 12c94499..7a2c27b3 100644 --- a/src/main/scala/com/codacy/transformation/FileNameMatcher.scala +++ b/src/main/scala/com/codacy/transformation/FileNameMatcher.scala @@ -17,10 +17,10 @@ object FileNameMatcher { } private def haveSameName(file: String, covFile: String): Boolean = - getFilenameFromPath(file) == getFilenameFromPath(covFile) + getFilenameFromPath(file).equalsIgnoreCase(getFilenameFromPath(covFile)) private def haveSamePath(file: String, covFile: String): Boolean = - file == covFile + file.equalsIgnoreCase(covFile) private def fileEndsWithReportPath(file: String, covFile: String): Boolean = file.endsWith(covFile)