Skip to content

Commit

Permalink
Merge pull request #487 from codacy/DOCS-645-clarify-that-the-coverag…
Browse files Browse the repository at this point in the history
…e-pipeline-may-fail-if-no-files-on-the-report-match-those-on-the-git-provider

doc: Update error messages DOCS-645
  • Loading branch information
nicklem authored Jan 23, 2024
2 parents 0b9d524 + 1b347d3 commit 85fb80b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/com/codacy/rules/ReportRules.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 85fb80b

Please sign in to comment.