Skip to content

Commit

Permalink
feature: Add link to multiple reports documentation (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Duarte authored Jun 22, 2020
1 parent 82b10d6 commit 0f47633
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/scala/com/codacy/rules/ReportRules.scala
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ReportRules(coverageServices: => CoverageServices) extends LogSupport {

val filesEither = guessReportFiles(config.coverageReports, rootProjectDirIterator)

filesEither.flatMap { files =>
val operationResult = filesEither.flatMap { files =>
if (files.length > 1 && !config.partial) {
logger.info("More than one file. Considering a partial report")
for {
Expand All @@ -72,6 +72,14 @@ class ReportRules(coverageServices: => CoverageServices) extends LogSupport {
sendFilesReportForCommit(files, config, partial = config.partial, commitUUID)
}
}
if (config.partial) {
logger.info(
"""To complete the reporting process, call coverage-reporter with the final flag.
| Check https://github.com/codacy/codacy-coverage-reporter#multiple-coverage-reports-for-the-same-language
| for more information.""".stripMargin
)
}
operationResult
}
}

Expand Down

0 comments on commit 0f47633

Please sign in to comment.