Skip to content

Commit

Permalink
Merge pull request #503 from codacy/path-fixing-ignore-case
Browse files Browse the repository at this point in the history
tce-982 Ignore cases in path-fixing
  • Loading branch information
DMarinhoCodacy authored May 24, 2024
2 parents 47e73b6 + bddce28 commit 9992245
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9992245

Please sign in to comment.