From 9aef3403a47a9c94cc7fb8ac45c878e5856e7815 Mon Sep 17 00:00:00 2001 From: Dinesh Bolkensteyn Date: Fri, 4 Dec 2015 16:58:17 +0100 Subject: [PATCH] SONARCS-560 Fix SonarLint exported analyzer and namespace --- .../java/org/sonar/plugins/csharp/SonarLintProfileExporter.java | 2 +- .../org/sonar/plugins/csharp/SonarLintProfileExporterTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/sonar/plugins/csharp/SonarLintProfileExporter.java b/src/main/java/org/sonar/plugins/csharp/SonarLintProfileExporter.java index 34ee3ba6c4d..5f0c98ef75c 100644 --- a/src/main/java/org/sonar/plugins/csharp/SonarLintProfileExporter.java +++ b/src/main/java/org/sonar/plugins/csharp/SonarLintProfileExporter.java @@ -47,7 +47,7 @@ public void exportProfile(RulesProfile ruleProfile, Writer writer) { appendLine(writer, ""); appendLine(writer, ""); - appendLine(writer, " "); + appendLine(writer, " "); for (ActiveRule activeRule : ruleProfile.getActiveRulesByRepository(CSharpPlugin.REPOSITORY_KEY)) { Rule rule = activeRule.getRule(); diff --git a/src/test/java/org/sonar/plugins/csharp/SonarLintProfileExporterTest.java b/src/test/java/org/sonar/plugins/csharp/SonarLintProfileExporterTest.java index 9fa8c8b13a7..7351ec36572 100644 --- a/src/test/java/org/sonar/plugins/csharp/SonarLintProfileExporterTest.java +++ b/src/test/java/org/sonar/plugins/csharp/SonarLintProfileExporterTest.java @@ -114,7 +114,7 @@ public void test() { assertThat(writer.toString()).isEqualTo( "\r\n" + "\r\n" + - " \r\n" + + " \r\n" + " \r\n" + " \r\n" + " \r\n" +