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
0 commit comments