diff --git a/src/main/scala/com/codacy/rules/ReportRules.scala b/src/main/scala/com/codacy/rules/ReportRules.scala index 72069ab3..b0a9134c 100644 --- a/src/main/scala/com/codacy/rules/ReportRules.scala +++ b/src/main/scala/com/codacy/rules/ReportRules.scala @@ -120,7 +120,7 @@ class ReportRules(coverageServices: => CoverageServices, gitFileFetcher: GitFile */ private[rules] def storeReport(report: CoverageReport, file: File) = { if (report.fileReports.isEmpty) - Left(s"The provided coverage report ${file.getAbsolutePath} generated an empty result.") + Left(s"The generated coverage report ${file.getAbsolutePath} is empty or contains no data for repository files.") else { val codacyReportFile = File.createTempFile("codacy-coverage-", ".json") diff --git a/src/main/scala/com/codacy/transformation/GitFileNameUpdaterAndFilter.scala b/src/main/scala/com/codacy/transformation/GitFileNameUpdaterAndFilter.scala index e80fe653..0b9cb32b 100644 --- a/src/main/scala/com/codacy/transformation/GitFileNameUpdaterAndFilter.scala +++ b/src/main/scala/com/codacy/transformation/GitFileNameUpdaterAndFilter.scala @@ -19,7 +19,7 @@ class GitFileNameUpdaterAndFilter(acceptableFileNames: Seq[String]) extends Tran if (maybeFilename.isEmpty) logger - .warn(s"File: $filename will be discarded and will not be considered for coverage calculation") + .warn(s"File: Ignoring $filename for coverage calculation. No matching file found in the repository.") maybeFilename }