Skip to content

Commit

Permalink
Update the code based on PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmorand-sonarsource committed Nov 20, 2024
1 parent 567d407 commit 256fd7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ public void define(Context context) {
*
* Note that this method should probably not be hosted here: either it should be part of a dedicated helper class, or it should be provided by a Markdown-to-HTML library. Since it is only used in this specific class, it is acceptable for now to have it hosted here.
*/
protected String getHTMLMarkup(String markdownMarkup) {
private String getHTMLMarkup(String markdownMarkup) {
return markdownMarkup
.replace("\n", "<br>")
.replaceAll("`(.*?)`", "<code>$1</code>")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.slf4j.event.Level;
import org.sonar.api.*;
import org.sonar.api.Plugin;
import org.sonar.api.SonarEdition;
import org.sonar.api.SonarQubeSide;
import org.sonar.api.SonarRuntime;
import org.sonar.api.config.PropertyDefinition;
import org.sonar.api.internal.SonarRuntimeImpl;
import org.sonar.api.testfixtures.log.LogTesterJUnit5;
Expand Down

0 comments on commit 256fd7b

Please sign in to comment.