aboutsummaryrefslogtreecommitdiffstats
path: root/tests/plugins/batch-plugin/pom.xml
blob: e28442022b3794090ebacec83ca4571145988656 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { col
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.sonarsource.sonarqube.tests</groupId>
    <artifactId>plugins</artifactId>
    <version>6.7</version>
  </parent>

  <artifactId>batch-plugin</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>sonar-plugin</packaging>
  <name>SonarQube Integration Tests :: Plugins :: Batch</name>
  <description>Main plugin for batch tests</description>

  <dependencies>
    <dependency>
      <groupId>org.sonarsource.sonarqube</groupId>
      <artifactId>sonar-plugin-api</artifactId>
      <version>${apiVersion}</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId>
        <artifactId>sonar-packaging-maven-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <pluginClass>com.sonarsource.BatchPlugin</pluginClass>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
on(public in*[] MaybeMissing*.*()); pointcut return2DimPrimitiveTypeArray() : execution(public in*[][] MaybeMissing*.*()); // Return type 'in*' also matches array types due to the '*' at the end. // Therefore, explicitly exclude array pointcuts in order to only match the method returning the simple type. after() : returnPrimitiveTypeSimpleOrArray() && !return1DimPrimitiveTypeArray() && !return2DimPrimitiveTypeArray() { System.out.println(thisJoinPoint); } after() : return1DimPrimitiveTypeArray() { System.out.println(thisJoinPoint); } after() : return2DimPrimitiveTypeArray() { System.out.println(thisJoinPoint); } }