Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit 0eec423

Browse files
committed
update version
1 parent 64e676c commit 0eec423

File tree

6 files changed

+15
-16
lines changed

6 files changed

+15
-16
lines changed

commons/pom.xml

Lines changed: 1 addition & 1 deletion
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.4</version>
27+
<version>0.4.5</version>
2828
</parent>
2929
<modelVersion>4.0.0</modelVersion>
3030

objclang/pom.xml

Lines changed: 2 additions & 2 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.4</version>
27+
<version>0.4.5</version>
2828
</parent>
2929
<modelVersion>4.0.0</modelVersion>
3030

@@ -37,7 +37,7 @@
3737
<dependency>
3838
<groupId>com.backelite.sonarqube</groupId>
3939
<artifactId>commons</artifactId>
40-
<version>0.4.4</version>
40+
<version>0.4.5</version>
4141
</dependency>
4242

4343
<dependency>

objclang/src/main/java/com/backelite/sonarqube/objectivec/ObjectiveCSquidSensor.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/**
22
* Swift SonarQube Plugin - Objective-C module - Enables analysis of Swift and Objective-C projects into SonarQube.
33
* Copyright © 2015 Backelite (${email})
4-
*
4+
* <p>
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by
77
* the Free Software Foundation, either version 3 of the License, or
88
* (at your option) any later version.
9-
*
9+
* <p>
1010
* This program is distributed in the hope that it will be useful,
1111
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1212
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1313
* GNU Lesser General Public License for more details.
14-
*
14+
* <p>
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
*/
@@ -67,7 +67,7 @@ public class ObjectiveCSquidSensor implements Sensor {
6767
public ObjectiveCSquidSensor(SensorContext context, PathResolver pathResolver, CheckFactory checkFactory) {
6868
this.context = context;
6969
this.pathResolver = pathResolver;
70-
this.checks = checkFactory.<SquidCheck<ObjectiveCGrammar>>create(CheckList.REPOSITORY_KEY).addAnnotatedChecks((Iterable<Class>)CheckList.getChecks());
70+
this.checks = checkFactory.<SquidCheck<ObjectiveCGrammar>>create(CheckList.REPOSITORY_KEY).addAnnotatedChecks((Iterable<Class>) CheckList.getChecks());
7171
}
7272

7373
private ObjectiveCConfiguration createConfiguration() {
@@ -86,7 +86,6 @@ private void save(Collection<SourceCode> squidSourceFiles) {
8686
}
8787

8888
private void saveMeasures(InputFile inputFile, SourceFile squidFile) {
89-
MeasureUtil.saveMeasure(context, inputFile, CoreMetrics.FILES, squidFile.getInt(ObjectiveCMetric.FILES));
9089
MeasureUtil.saveMeasure(context, inputFile, CoreMetrics.LINES, squidFile.getInt(ObjectiveCMetric.LINES));
9190
MeasureUtil.saveMeasure(context, inputFile, CoreMetrics.NCLOC, squidFile.getInt(ObjectiveCMetric.LINES_OF_CODE));
9291
MeasureUtil.saveMeasure(context, inputFile, CoreMetrics.STATEMENTS, squidFile.getInt(ObjectiveCMetric.STATEMENTS));
@@ -133,7 +132,7 @@ public void execute(SensorContext context) {
133132
FilePredicate isMain = context.fileSystem().predicates().hasType(InputFile.Type.MAIN);
134133
FilePredicate and = context.fileSystem().predicates().and(hasObjC, isMain);
135134
List<File> files = new ArrayList<>();
136-
for(InputFile inf : context.fileSystem().inputFiles(and)){
135+
for (InputFile inf : context.fileSystem().inputFiles(and)) {
137136
files.add(inf.file());
138137
}
139138

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
<groupId>com.backelite.sonarqube</groupId>
4141
<artifactId>backelite-swift</artifactId>
42-
<version>0.4.4</version>
42+
<version>0.4.5</version>
4343

4444
<packaging>pom</packaging>
4545

sonar-swift-plugin/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
<parent>
2727
<groupId>com.backelite.sonarqube</groupId>
2828
<artifactId>backelite-swift</artifactId>
29-
<version>0.4.4</version>
29+
<version>0.4.5</version>
3030
</parent>
3131

3232
<groupId>com.backelite.sonarqube</groupId>
3333
<artifactId>backelite-sonar-swift-plugin</artifactId>
34-
<version>0.4.4</version>
34+
<version>0.4.5</version>
3535

3636
<packaging>sonar-plugin</packaging>
3737

@@ -40,12 +40,12 @@
4040
<dependency>
4141
<groupId>com.backelite.sonarqube</groupId>
4242
<artifactId>swift-lang</artifactId>
43-
<version>0.4.4</version>
43+
<version>0.4.5</version>
4444
</dependency>
4545
<dependency>
4646
<groupId>com.backelite.sonarqube</groupId>
4747
<artifactId>objc-lang</artifactId>
48-
<version>0.4.4</version>
48+
<version>0.4.5</version>
4949
</dependency>
5050

5151
<dependency>

swiftlang/pom.xml

Lines changed: 2 additions & 2 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.4</version>
27+
<version>0.4.5</version>
2828
</parent>
2929
<modelVersion>4.0.0</modelVersion>
3030

@@ -36,7 +36,7 @@
3636
<dependency>
3737
<groupId>com.backelite.sonarqube</groupId>
3838
<artifactId>commons</artifactId>
39-
<version>0.4.4</version>
39+
<version>0.4.5</version>
4040
</dependency>
4141

4242
<dependency>

0 commit comments

Comments
 (0)