Skip to content

Commit 1066361

Browse files
authored
Merge pull request #177 from bcolvin/develop
7.3 support, stax removal, etc
2 parents fc7400d + 34933b9 commit 1066361

File tree

69 files changed

+1188
-2519
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1188
-2519
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# _SonarQube Plugin for Swift_ Changelog
22

33

4+
## v0.4.2
5+
- Added support for SonarQube 7.3
6+
47
## v0.4.1
58
- Fixed NPE on SquidSensor
69

commons/pom.xml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<parent>
2525
<artifactId>backelite-swift</artifactId>
2626
<groupId>com.backelite.sonarqube</groupId>
27-
<version>0.4.1</version>
27+
<version>0.4.2</version>
2828
</parent>
2929
<modelVersion>4.0.0</modelVersion>
3030

@@ -41,36 +41,15 @@
4141
<groupId>org.sonarsource.sslr-squid-bridge</groupId>
4242
<artifactId>sslr-squid-bridge</artifactId>
4343
</dependency>
44-
<dependency>
45-
<groupId>commons-lang</groupId>
46-
<artifactId>commons-lang</artifactId>
47-
</dependency>
48-
<dependency>
49-
<groupId>commons-io</groupId>
50-
<artifactId>commons-io</artifactId>
51-
</dependency>
5244
<dependency>
5345
<groupId>ch.qos.logback</groupId>
5446
<artifactId>logback-classic</artifactId>
5547
</dependency>
56-
<dependency>
57-
<groupId>com.google.guava</groupId>
58-
<artifactId>guava</artifactId>
59-
</dependency>
60-
<dependency>
61-
<groupId>com.google.code.gson</groupId>
62-
<artifactId>gson</artifactId>
63-
</dependency>
6448
<dependency>
6549
<groupId>ant</groupId>
6650
<artifactId>ant</artifactId>
6751
</dependency>
6852

69-
<dependency>
70-
<groupId>com.googlecode.json-simple</groupId>
71-
<artifactId>json-simple</artifactId>
72-
</dependency>
73-
7453
<!-- Test dependencies -->
7554
<dependency>
7655
<groupId>junit</groupId>

commons/src/main/java/com/backelite/sonarqube/commons/Constants.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,5 @@
2121
* Created by gillesgrousset on 23/08/2018.
2222
*/
2323
public final class Constants {
24-
25-
// Common constants
26-
public static final String FALSE = "false";
27-
2824
public static final String PROPERTY_PREFIX = "sonar.swift";
29-
30-
public static final String TEST_FRAMEWORK_KEY = PROPERTY_PREFIX + ".testframework";
31-
public static final String TEST_FRAMEWORK_DEFAULT = "ghunit";
32-
3325
}
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,11 @@
1515
* You should have received a copy of the GNU Lesser General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
18-
package com.backelite.sonarqube.commons.surefire;
18+
package com.backelite.sonarqube.commons;
1919

2020
import org.sonar.api.batch.fs.FileSystem;
2121
import org.sonar.api.batch.fs.InputFile;
2222

23-
import javax.annotation.Nullable;
24-
25-
/**
26-
* Created by gillesgrousset on 28/08/2018.
27-
*/
2823
public interface TestFileFinder {
29-
30-
@Nullable
3124
InputFile getUnitTestResource(FileSystem fileSystem, String classname);
3225
}
Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,20 @@
1515
* You should have received a copy of the GNU Lesser General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
18-
package com.backelite.sonarqube.commons.surefire;
18+
package com.backelite.sonarqube.commons;
1919

2020
import org.sonar.api.batch.fs.FileSystem;
2121
import org.sonar.api.batch.fs.InputFile;
2222

23-
import javax.annotation.Nullable;
2423
import java.util.ArrayList;
2524
import java.util.List;
2625

2726
public class TestFileFinders {
28-
2927
private static TestFileFinders instance;
30-
31-
3228
private final List<TestFileFinder> finders = new ArrayList<>();
33-
34-
private TestFileFinders() {
35-
36-
}
29+
private TestFileFinders() {}
3730

3831
public static synchronized TestFileFinders getInstance() {
39-
4032
if (instance == null) {
4133
instance = new TestFileFinders();
4234
}
@@ -47,9 +39,7 @@ public void addFinder(TestFileFinder finder) {
4739
finders.add(finder);
4840
}
4941

50-
@Nullable
5142
InputFile getUnitTestResource(FileSystem fileSystem, String classname) {
52-
5343
for (TestFileFinder finder : finders) {
5444
InputFile result = finder.getUnitTestResource(fileSystem, classname);
5545
if (result != null) {

commons/src/main/java/com/backelite/sonarqube/commons/surefire/SurefireParser.java

Lines changed: 0 additions & 169 deletions
This file was deleted.

commons/src/main/java/com/backelite/sonarqube/commons/surefire/SurefireSensor.java

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)