Skip to content

Commit

Permalink
Extract Squid into its own module
Browse files Browse the repository at this point in the history
  • Loading branch information
mjdetullio committed Mar 9, 2016
1 parent 12cda00 commit 5944873
Show file tree
Hide file tree
Showing 43 changed files with 102 additions and 49 deletions.
55 changes: 55 additions & 0 deletions objective-c-squid/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<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>

<parent>
<groupId>org.sonarqubecommunity.objectivec</groupId>
<artifactId>objective-c</artifactId>
<version>0.5.0-SNAPSHOT</version>
</parent>

<artifactId>objective-c-squid</artifactId>

<name>SonarQube Objective-C (Community) :: Squid</name>

<dependencies>
<dependency>
<groupId>org.codehaus.sonar</groupId>
<artifactId>sonar-plugin-api</artifactId>
</dependency>
<dependency>
<groupId>org.sonarsource.sslr</groupId>
<artifactId>sslr-core</artifactId>
</dependency>
<dependency>
<groupId>org.sonarsource.sslr-squid-bridge</groupId>
<artifactId>sslr-squid-bridge</artifactId>
</dependency>
<!-- unit tests -->
<dependency>
<groupId>org.codehaus.sonar</groupId>
<artifactId>sonar-testing-harness</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.sslr</groupId>
<artifactId>sslr-testing-harness</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easytesting</groupId>
<artifactId>fest-assert</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SonarQube Objective-C (Community) Plugin
* SonarQube Objective-C (Community) :: Squid
* Copyright (C) 2012-2016 OCTO Technology, Backelite, and contributors
* mailto:[email protected]
*
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
</licenses>

<modules>
<module>objective-c-squid</module>
<module>sonar-objective-c-plugin</module>
<module>sslr-objective-c-toolkit</module>
<module>its</module>
Expand Down
14 changes: 3 additions & 11 deletions sonar-objective-c-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,9 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.sslr</groupId>
<artifactId>sslr-core</artifactId>
</dependency>
<dependency>
<groupId>org.sonarsource.sslr-squid-bridge</groupId>
<artifactId>sslr-squid-bridge</artifactId>
<groupId>${project.groupId}</groupId>
<artifactId>objective-c-squid</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.googlecode.plist</groupId>
Expand All @@ -47,11 +44,6 @@
<artifactId>sonar-testing-harness</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.sslr</groupId>
<artifactId>sslr-testing-harness</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@
import org.sonar.api.SonarPlugin;
import org.sonar.api.config.PropertyDefinition;
import org.sonar.api.resources.Qualifiers;
import org.sonar.plugins.objectivec.api.ObjectiveC;
import org.sonar.plugins.objectivec.clang.ClangProfile;
import org.sonar.plugins.objectivec.clang.ClangProfileImporter;
import org.sonar.plugins.objectivec.clang.ClangRulesDefinition;
import org.sonar.plugins.objectivec.clang.ClangSensor;
import org.sonar.plugins.objectivec.cobertura.CoberturaSensor;
import org.sonar.plugins.objectivec.cpd.ObjectiveCCpdMapping;
import org.sonar.plugins.objectivec.lizard.LizardSensor;
import org.sonar.plugins.objectivec.oclint.OCLintProfile;
import org.sonar.plugins.objectivec.oclint.OCLintProfileImporter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.sonar.api.profiles.RulesProfile;
import org.sonar.api.utils.ValidationMessages;
import org.sonar.objectivec.checks.CheckList;
import org.sonar.plugins.objectivec.api.ObjectiveC;

public class ObjectiveCProfile extends ProfileDefinition {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import org.sonar.objectivec.api.ObjectiveCMetric;
import org.sonar.objectivec.checks.CheckList;
import org.sonar.objectivec.highlighter.SonarComponents;
import org.sonar.plugins.objectivec.api.ObjectiveC;
import org.sonar.squidbridge.AstScanner;
import org.sonar.squidbridge.SquidAstVisitor;
import org.sonar.squidbridge.api.CheckMessage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package org.sonar.plugins.objectivec;
package org.sonar.plugins.objectivec.api;

import com.google.common.collect.Lists;
import org.apache.commons.lang.StringUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.sonar.api.profiles.ProfileDefinition;
import org.sonar.api.profiles.RulesProfile;
import org.sonar.api.utils.ValidationMessages;
import org.sonar.plugins.objectivec.ObjectiveC;
import org.sonar.plugins.objectivec.api.ObjectiveC;

import java.io.IOException;
import java.io.InputStreamReader;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import org.sonar.api.profiles.RulesProfile;
import org.sonar.api.profiles.XMLProfileParser;
import org.sonar.api.utils.ValidationMessages;
import org.sonar.plugins.objectivec.ObjectiveC;
import org.sonar.plugins.objectivec.api.ObjectiveC;

import java.io.Reader;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import com.google.common.collect.ImmutableMap;
import org.sonar.api.server.rule.RulesDefinition;
import org.sonar.api.server.rule.RulesDefinitionXmlLoader;
import org.sonar.plugins.objectivec.ObjectiveC;
import org.sonar.plugins.objectivec.api.ObjectiveC;
import org.sonar.squidbridge.rules.SqaleXmlLoader;

import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package org.sonar.plugins.objectivec;
package org.sonar.plugins.objectivec.cpd;

import net.sourceforge.pmd.cpd.Tokenizer;
import org.sonar.api.batch.AbstractCpdMapping;
import org.sonar.api.batch.fs.FileSystem;
import org.sonar.api.resources.Language;
import org.sonar.plugins.objectivec.api.ObjectiveC;

import java.nio.charset.Charset;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package org.sonar.plugins.objectivec;
package org.sonar.plugins.objectivec.cpd;

import com.sonar.sslr.api.Token;
import com.sonar.sslr.impl.Lexer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import org.sonar.api.resources.Project;
import org.sonar.api.resources.Resource;
import org.sonar.api.scan.filesystem.PathResolver;
import org.sonar.plugins.objectivec.ObjectiveC;
import org.sonar.plugins.objectivec.api.ObjectiveC;

import java.io.File;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.sonar.api.profiles.ProfileDefinition;
import org.sonar.api.profiles.RulesProfile;
import org.sonar.api.utils.ValidationMessages;
import org.sonar.plugins.objectivec.ObjectiveC;
import org.sonar.plugins.objectivec.api.ObjectiveC;

import java.io.IOException;
import java.io.InputStreamReader;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import org.sonar.api.profiles.RulesProfile;
import org.sonar.api.profiles.XMLProfileParser;
import org.sonar.api.utils.ValidationMessages;
import org.sonar.plugins.objectivec.ObjectiveC;
import org.sonar.plugins.objectivec.api.ObjectiveC;

import java.io.Reader;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import org.sonar.api.server.rule.RulesDefinition;
import org.sonar.api.server.rule.RulesDefinitionXmlLoader;
import org.sonar.plugins.objectivec.ObjectiveC;
import org.sonar.plugins.objectivec.api.ObjectiveC;
import org.sonar.squidbridge.rules.SqaleXmlLoader;

public final class OCLintRulesDefinition implements RulesDefinition {
Expand Down
Loading

0 comments on commit 5944873

Please sign in to comment.