Skip to content

Commit 85fb80b

Browse files
authored
Merge pull request #487 from codacy/DOCS-645-clarify-that-the-coverage-pipeline-may-fail-if-no-files-on-the-report-match-those-on-the-git-provider
doc: Update error messages DOCS-645
2 parents 0b9d524 + 1b347d3 commit 85fb80b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/scala/com/codacy/rules/ReportRules.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class ReportRules(coverageServices: => CoverageServices, gitFileFetcher: GitFile
120120
*/
121121
private[rules] def storeReport(report: CoverageReport, file: File) = {
122122
if (report.fileReports.isEmpty)
123-
Left(s"The provided coverage report ${file.getAbsolutePath} generated an empty result.")
123+
Left(s"The generated coverage report ${file.getAbsolutePath} is empty or contains no data for repository files.")
124124
else {
125125
val codacyReportFile = File.createTempFile("codacy-coverage-", ".json")
126126

src/main/scala/com/codacy/transformation/GitFileNameUpdaterAndFilter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class GitFileNameUpdaterAndFilter(acceptableFileNames: Seq[String]) extends Tran
1919

2020
if (maybeFilename.isEmpty)
2121
logger
22-
.warn(s"File: $filename will be discarded and will not be considered for coverage calculation")
22+
.warn(s"File: Ignoring $filename for coverage calculation. No matching file found in the repository.")
2323

2424
maybeFilename
2525
}

0 commit comments

Comments
 (0)