Skip to content

Commit

Permalink
Added @ScannerSide annotation to PmdProfileExporter; fixes #55.
Browse files Browse the repository at this point in the history
  • Loading branch information
jensgerdes committed Nov 2, 2018
1 parent e1ced73 commit 6b2d495
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<groupId>org.sonarsource.sonarqube</groupId>
<artifactId>sonar-plugin-api</artifactId>
<scope>provided</scope>
<version>6.7</version>
<version>7.4</version>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.jdom.Element;
import org.jdom.output.Format;
import org.jdom.output.XMLOutputter;
import org.sonar.api.batch.ScannerSide;
import org.sonar.api.profiles.ProfileExporter;
import org.sonar.api.profiles.RulesProfile;
import org.sonar.api.rules.ActiveRule;
Expand All @@ -42,6 +43,7 @@
import org.sonar.plugins.pmd.xml.PmdRule;
import org.sonar.plugins.pmd.xml.PmdRuleSet;

@ScannerSide
public class PmdProfileExporter extends ProfileExporter {

private static final String CONTENT_TYPE_APPLICATION_XML = "application/xml";
Expand Down

0 comments on commit 6b2d495

Please sign in to comment.