Skip to content

Commit

Permalink
Delete images in PRs report
Browse files Browse the repository at this point in the history
  • Loading branch information
Laura Cameran committed Mar 2, 2021
1 parent 440555f commit 419c2a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ class PullRequestReviewResults(pluginConfiguration: SonarBBPluginConfig) {
}

private def appendIssueSeverityRemark(markdown: StringBuilder) = {
val severityImgMarkdown = SonarUtils.toImageMarkdown(Severity.valueOf(pluginConfiguration.minSeverity()))
markdown.append(
s"""Note that only issues with severity >=
|$severityImgMarkdown (${pluginConfiguration.minSeverity().toLowerCase})
| ${pluginConfiguration.minSeverity().toLowerCase}
|are reported.""".stripMargin.replaceAll("\n", " ")
)
}
Expand All @@ -64,7 +63,7 @@ class PullRequestReviewResults(pluginConfiguration: SonarBBPluginConfig) {
private def printNewIssuesForMarkdown(sb: StringBuilder, severity: Severity) = {
val issueCount = newIssuesBySeverity(severity)
if (issueCount > 0) {
sb.append(s"* ${SonarUtils.toImageMarkdown(severity)} $issueCount ${severity.toString.toLowerCase}\n")
sb.append(s"* $issueCount ${severity.toString.toLowerCase}\n")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ object SonarUtils {
val ruleLink = getRuleLink(issue.ruleKey(), settings)
val sb = new mutable.StringBuilder()
val severity = issue.severity()
sb.append(toImageMarkdown(severity))
.append(s" **$severity**: ")
sb.append(s" **$severity**: ")
.append(issue.message())
.append(" ")
.append(ruleLink)
Expand Down

0 comments on commit 419c2a1

Please sign in to comment.