-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe8e54c
commit 019fed1
Showing
29 changed files
with
965 additions
and
338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!target/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ARG VERSION=latest | ||
FROM sonarqube:${VERSION} | ||
|
||
COPY target/sonar-clover-plugin.jar /opt/sonarqube/extensions/plugins/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## Contributions | ||
|
||
All contributions have to be test using a manual (for now) process | ||
|
||
## Test | ||
|
||
Each contributions should allows us to use this plugin in version LTS and Latest | ||
|
||
In order to test with different version of SonarQube, you could use: | ||
```bash | ||
VERSION=<myVersion> make run-integration-platform | ||
``` | ||
This command will start a sonarQube container with version : myVersion (`lts` or `latest` could be used) | ||
|
||
And run | ||
```bash | ||
make run-integration-test | ||
``` | ||
Which will do a mvn build on a test project and upload the report in the sonarQube container created above. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<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/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>org.sonar.tests</groupId> | ||
<artifactId>integration</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<name>Sonar tests - clover reuse report</name> | ||
<build> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<configuration> | ||
<source>1.8</source> | ||
<target>1.8</target> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.openclover</groupId> | ||
<artifactId>clover-maven-plugin</artifactId> | ||
<version>4.3.1</version> | ||
<configuration> | ||
<generateHtml>false</generateHtml> | ||
<generateXml>true</generateXml> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.7</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
public class DTO { | ||
private String item1; | ||
|
||
private String item2; | ||
|
||
private String item3; | ||
|
||
private int value1; | ||
|
||
private int value2; | ||
|
||
private int value3; | ||
|
||
public String getItem1() { | ||
return item1; | ||
} | ||
|
||
public void setItem1(String item1) { | ||
this.item1 = item1; | ||
} | ||
|
||
public String getItem2() { | ||
return item2; | ||
} | ||
|
||
public void setItem2(String item2) { | ||
this.item2 = item2; | ||
} | ||
|
||
public String getItem3() { | ||
return item3; | ||
} | ||
|
||
public void setItem3(String item3) { | ||
this.item3 = item3; | ||
} | ||
|
||
public int getValue1() { | ||
return value1; | ||
} | ||
|
||
public void setValue1(int value1) { | ||
this.value1 = value1; | ||
} | ||
|
||
public int getValue2() { | ||
return value2; | ||
} | ||
|
||
public void setValue2(int value2) { | ||
this.value2 = value2; | ||
} | ||
|
||
public int getValue3() { | ||
return value3; | ||
} | ||
|
||
public void setValue3(int value3) { | ||
this.value3 = value3; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
public class HelloWorld { | ||
|
||
public void neverCalled() { | ||
System.out.println("Hello world!"); | ||
} | ||
|
||
public boolean isPositive(int value) { | ||
return value > 0 ? true : false; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
public class OmittedDTO { | ||
private String item1; | ||
|
||
private String item2; | ||
|
||
private String item3; | ||
|
||
private int value1; | ||
|
||
private int value2; | ||
|
||
private int value3; | ||
|
||
public String getItem1() { | ||
return item1; | ||
} | ||
|
||
public void setItem1(String item1) { | ||
this.item1 = item1; | ||
} | ||
|
||
public String getItem2() { | ||
return item2; | ||
} | ||
|
||
public void setItem2(String item2) { | ||
this.item2 = item2; | ||
} | ||
|
||
public String getItem3() { | ||
return item3; | ||
} | ||
|
||
public void setItem3(String item3) { | ||
this.item3 = item3; | ||
} | ||
|
||
public int getValue1() { | ||
return value1; | ||
} | ||
|
||
public void setValue1(int value1) { | ||
this.value1 = value1; | ||
} | ||
|
||
public int getValue2() { | ||
return value2; | ||
} | ||
|
||
public void setValue2(int value2) { | ||
this.value2 = value2; | ||
} | ||
|
||
public int getValue3() { | ||
return value3; | ||
} | ||
|
||
public void setValue3(int value3) { | ||
this.value3 = value3; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
public class HelloWorldTest extends junit.framework.TestCase { | ||
|
||
public void testWillIncreaseCoverage() { | ||
new HelloWorld().isPositive(0); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
public class DTO { | ||
private String item1; | ||
|
||
private String item2; | ||
|
||
private String item3; | ||
|
||
private int value1; | ||
|
||
private int value2; | ||
|
||
private int value3; | ||
|
||
public String getItem1() { | ||
return item1; | ||
} | ||
|
||
public void setItem1(String item1) { | ||
this.item1 = item1; | ||
} | ||
|
||
public String getItem2() { | ||
return item2; | ||
} | ||
|
||
public void setItem2(String item2) { | ||
this.item2 = item2; | ||
} | ||
|
||
public String getItem3() { | ||
return item3; | ||
} | ||
|
||
public void setItem3(String item3) { | ||
this.item3 = item3; | ||
} | ||
|
||
public int getValue1() { | ||
return value1; | ||
} | ||
|
||
public void setValue1(int value1) { | ||
this.value1 = value1; | ||
} | ||
|
||
public int getValue2() { | ||
return value2; | ||
} | ||
|
||
public void setValue2(int value2) { | ||
this.value2 = value2; | ||
} | ||
|
||
public int getValue3() { | ||
return value3; | ||
} | ||
|
||
public void setValue3(int value3) { | ||
this.value3 = value3; | ||
} | ||
} |
Oops, something went wrong.