diff options
Diffstat (limited to 'plugins/sonar-checkstyle-plugin/src')
3 files changed, 2 insertions, 3 deletions
diff --git a/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileExporter.java b/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileExporter.java index b18a198b40a..ab91ee2f647 100644 --- a/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileExporter.java +++ b/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileExporter.java @@ -146,7 +146,7 @@ public class CheckstyleProfileExporter extends ProfileExporter { private void appendRuleParameters(Writer writer, ActiveRule activeRule) throws IOException { for (RuleParam ruleParam : activeRule.getRule().getParams()) { - String value = activeRule.getParameter(ruleParam.getKey(), true); + String value = activeRule.getParameter(ruleParam.getKey()); if (StringUtils.isNotBlank(value)) { appendModuleProperty(writer, ruleParam.getKey(), value); } diff --git a/plugins/sonar-checkstyle-plugin/src/test/java/org/sonar/plugins/checkstyle/CheckstyleProfileExporterTest.java b/plugins/sonar-checkstyle-plugin/src/test/java/org/sonar/plugins/checkstyle/CheckstyleProfileExporterTest.java index b81557b37b8..a7c4ff76e72 100644 --- a/plugins/sonar-checkstyle-plugin/src/test/java/org/sonar/plugins/checkstyle/CheckstyleProfileExporterTest.java +++ b/plugins/sonar-checkstyle-plugin/src/test/java/org/sonar/plugins/checkstyle/CheckstyleProfileExporterTest.java @@ -104,7 +104,7 @@ public class CheckstyleProfileExporterTest { .setConfigKey("Checker/JavadocPackage"); rule.createParameter("format"); rule.createParameter("message"); // not set in the profile and no default value => not exported in checkstyle - rule.createParameter("ignore").setDefaultValue("true"); + rule.createParameter("ignore"); profile.activateRule(rule, RulePriority.MAJOR) .setParameter("format", "abcde"); diff --git a/plugins/sonar-checkstyle-plugin/src/test/resources/org/sonar/plugins/checkstyle/CheckstyleProfileExporterTest/exportParameters.xml b/plugins/sonar-checkstyle-plugin/src/test/resources/org/sonar/plugins/checkstyle/CheckstyleProfileExporterTest/exportParameters.xml index 4dc5e48fdcb..461ad4ef4a1 100644 --- a/plugins/sonar-checkstyle-plugin/src/test/resources/org/sonar/plugins/checkstyle/CheckstyleProfileExporterTest/exportParameters.xml +++ b/plugins/sonar-checkstyle-plugin/src/test/resources/org/sonar/plugins/checkstyle/CheckstyleProfileExporterTest/exportParameters.xml @@ -5,7 +5,6 @@ <module name="JavadocPackage"> <property name="severity" value="warning" /> <property name="format" value="abcde" /> - <property name="ignore" value="true" /> </module> <module name="TreeWalker"> <module name="FileContentsHolder"/> |