aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-squid/src/main/java/org/sonar
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-squid/src/main/java/org/sonar')
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/Squid.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/AnalysisException.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/CheckMessage.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/CodeCheck.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/CodeScanner.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/CodeVisitor.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/Query.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/SourceClass.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/SourceCode.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeEdge.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeEdgeUsage.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeIndexer.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeSearchEngine.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeTreeDecorator.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/SourceFile.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/SourceFunction.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/SourceMethod.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/SourcePackage.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/SourceProject.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/SquidConfiguration.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByMeasure.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByName.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByParent.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByType.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/indexer/SquidIndex.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/math/MeasuresDistribution.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/measures/AbstractnessFormula.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/measures/AggregationFormula.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/measures/CalculatedMetricFormula.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/measures/CommentLinesDensityFormula.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/measures/CommentLinesWithoutHeaderFormula.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/measures/DistanceFormula.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/measures/InstabilityFormula.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/measures/MeanAggregationFormula.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/measures/Measurable.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/measures/Measures.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/measures/Metric.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/measures/MetricDef.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/measures/NoAggregationFormula.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/measures/PublicDocumentedApiDensityFormula.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/measures/SumAggregationFormula.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/recognizer/CamelCaseDetector.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/recognizer/CodeRecognizer.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/recognizer/ContainsDetector.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/recognizer/Detector.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/recognizer/EndWithDetector.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/recognizer/KeywordsDetector.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/recognizer/LanguageFootprint.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/recognizer/RegexDetector.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/text/Line.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/text/LineContextHandler.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/text/LinesFactory.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/text/LiteralValueHandler.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/text/MultiLinesCommentHandler.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/text/SingleLineCommentHandler.java1
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/text/Source.java6
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/text/StringArrayReader.java1
57 files changed, 59 insertions, 3 deletions
diff --git a/sonar-squid/src/main/java/org/sonar/squid/Squid.java b/sonar-squid/src/main/java/org/sonar/squid/Squid.java
index 25547f148c5..d1603ea5674 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/Squid.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/Squid.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid;
import java.util.Collection;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/AnalysisException.java b/sonar-squid/src/main/java/org/sonar/squid/api/AnalysisException.java
index 8bb52803096..604c28f0115 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/AnalysisException.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/AnalysisException.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
public class AnalysisException extends RuntimeException {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/CheckMessage.java b/sonar-squid/src/main/java/org/sonar/squid/api/CheckMessage.java
index 9a59293a461..b20846371ba 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/CheckMessage.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/CheckMessage.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
import java.text.MessageFormat;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/CodeCheck.java b/sonar-squid/src/main/java/org/sonar/squid/api/CodeCheck.java
index ac7f2545ddb..aaaeeab9f1f 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/CodeCheck.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/CodeCheck.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
public interface CodeCheck extends CodeVisitor {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/CodeScanner.java b/sonar-squid/src/main/java/org/sonar/squid/api/CodeScanner.java
index 3a4c53c949d..0d7a84d70a8 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/CodeScanner.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/CodeScanner.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
import java.util.ArrayList;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/CodeVisitor.java b/sonar-squid/src/main/java/org/sonar/squid/api/CodeVisitor.java
index 82163bb2bac..63fde3442cf 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/CodeVisitor.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/CodeVisitor.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
public interface CodeVisitor {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/Query.java b/sonar-squid/src/main/java/org/sonar/squid/api/Query.java
index 56e5af24c28..e7e8f19fcb9 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/Query.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/Query.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/SourceClass.java b/sonar-squid/src/main/java/org/sonar/squid/api/SourceClass.java
index 1be1ceef863..7badb42ea43 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/SourceClass.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/SourceClass.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
public class SourceClass extends SourceCode {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/SourceCode.java b/sonar-squid/src/main/java/org/sonar/squid/api/SourceCode.java
index 03d3ce8fc8a..a38d2613258 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/SourceCode.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/SourceCode.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
import java.util.HashSet;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeEdge.java b/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeEdge.java
index 37bf771e349..322a6d3e640 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeEdge.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeEdge.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
import java.util.HashSet;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeEdgeUsage.java b/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeEdgeUsage.java
index 9d4b311c580..fba1e56a8d1 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeEdgeUsage.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeEdgeUsage.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
public enum SourceCodeEdgeUsage {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeIndexer.java b/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeIndexer.java
index 7eb78e6e74b..3eadd2e4862 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeIndexer.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeIndexer.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
public interface SourceCodeIndexer {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeSearchEngine.java b/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeSearchEngine.java
index f89afac0e85..2f9c682d1a2 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeSearchEngine.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeSearchEngine.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
import java.util.Collection;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeTreeDecorator.java b/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeTreeDecorator.java
index 933ab70708d..397a5de6fee 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeTreeDecorator.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/SourceCodeTreeDecorator.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
import org.sonar.squid.measures.MetricDef;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/SourceFile.java b/sonar-squid/src/main/java/org/sonar/squid/api/SourceFile.java
index bd0cb5b52a7..c80f59d1075 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/SourceFile.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/SourceFile.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
import java.util.HashSet;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/SourceFunction.java b/sonar-squid/src/main/java/org/sonar/squid/api/SourceFunction.java
index 5a0805d9a62..29f0c0116ed 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/SourceFunction.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/SourceFunction.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
public class SourceFunction extends SourceCode {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/SourceMethod.java b/sonar-squid/src/main/java/org/sonar/squid/api/SourceMethod.java
index 60eab9faf2a..f41ace8aea1 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/SourceMethod.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/SourceMethod.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
import org.sonar.squid.measures.Metric;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/SourcePackage.java b/sonar-squid/src/main/java/org/sonar/squid/api/SourcePackage.java
index e7c025eb94e..469b46b71a8 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/SourcePackage.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/SourcePackage.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
public class SourcePackage extends SourceCode {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/SourceProject.java b/sonar-squid/src/main/java/org/sonar/squid/api/SourceProject.java
index 7d93421de12..9d627c641ce 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/SourceProject.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/SourceProject.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
public class SourceProject extends SourceCode {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/SquidConfiguration.java b/sonar-squid/src/main/java/org/sonar/squid/api/SquidConfiguration.java
index b6d36d390f9..eb8e4820e7e 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/SquidConfiguration.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/SquidConfiguration.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.api;
import java.nio.charset.Charset;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByMeasure.java b/sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByMeasure.java
index f6b1cafec2c..df1bfebcd79 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByMeasure.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByMeasure.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.indexer;
import org.sonar.squid.api.Query;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByName.java b/sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByName.java
index fb2a424b4f0..9c657661653 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByName.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByName.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.indexer;
import org.sonar.squid.api.Query;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByParent.java b/sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByParent.java
index a9a155084c1..f902ee403b7 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByParent.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByParent.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.indexer;
import org.sonar.squid.api.Query;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByType.java b/sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByType.java
index de52003613d..7b829f9285c 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByType.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/indexer/QueryByType.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.indexer;
import org.sonar.squid.api.Query;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/indexer/SquidIndex.java b/sonar-squid/src/main/java/org/sonar/squid/indexer/SquidIndex.java
index 10632ad7f9e..31369bfafff 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/indexer/SquidIndex.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/indexer/SquidIndex.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.indexer;
import java.util.Collection;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/math/MeasuresDistribution.java b/sonar-squid/src/main/java/org/sonar/squid/math/MeasuresDistribution.java
index b5b120a7e09..802e6900159 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/math/MeasuresDistribution.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/math/MeasuresDistribution.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.math;
import java.util.Collection;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/AbstractnessFormula.java b/sonar-squid/src/main/java/org/sonar/squid/measures/AbstractnessFormula.java
index 23c1c7377a3..5ce74aa0fe9 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/measures/AbstractnessFormula.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/measures/AbstractnessFormula.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.measures;
public class AbstractnessFormula implements CalculatedMetricFormula {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/AggregationFormula.java b/sonar-squid/src/main/java/org/sonar/squid/measures/AggregationFormula.java
index 88b9dcb3d8c..81d9b1b0d50 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/measures/AggregationFormula.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/measures/AggregationFormula.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.measures;
import java.util.Collection;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/CalculatedMetricFormula.java b/sonar-squid/src/main/java/org/sonar/squid/measures/CalculatedMetricFormula.java
index a4880c858d8..bb58954f779 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/measures/CalculatedMetricFormula.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/measures/CalculatedMetricFormula.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.measures;
public interface CalculatedMetricFormula {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/CommentLinesDensityFormula.java b/sonar-squid/src/main/java/org/sonar/squid/measures/CommentLinesDensityFormula.java
index 56b5ab333f8..5444d2aa5bc 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/measures/CommentLinesDensityFormula.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/measures/CommentLinesDensityFormula.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.measures;
public class CommentLinesDensityFormula implements CalculatedMetricFormula {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/CommentLinesWithoutHeaderFormula.java b/sonar-squid/src/main/java/org/sonar/squid/measures/CommentLinesWithoutHeaderFormula.java
index 9bf67b92981..90959f8ca74 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/measures/CommentLinesWithoutHeaderFormula.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/measures/CommentLinesWithoutHeaderFormula.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.measures;
public class CommentLinesWithoutHeaderFormula implements CalculatedMetricFormula {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/DistanceFormula.java b/sonar-squid/src/main/java/org/sonar/squid/measures/DistanceFormula.java
index ea1ce094c98..f9779a029e6 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/measures/DistanceFormula.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/measures/DistanceFormula.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.measures;
public class DistanceFormula implements CalculatedMetricFormula {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/InstabilityFormula.java b/sonar-squid/src/main/java/org/sonar/squid/measures/InstabilityFormula.java
index f4b7c984a31..86e7ff6bd63 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/measures/InstabilityFormula.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/measures/InstabilityFormula.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.measures;
public class InstabilityFormula implements CalculatedMetricFormula {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/MeanAggregationFormula.java b/sonar-squid/src/main/java/org/sonar/squid/measures/MeanAggregationFormula.java
index b0f6c1d40af..7017c9bc8d8 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/measures/MeanAggregationFormula.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/measures/MeanAggregationFormula.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.measures;
import java.util.Collection;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/Measurable.java b/sonar-squid/src/main/java/org/sonar/squid/measures/Measurable.java
index c04525279d1..49faa0e6aab 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/measures/Measurable.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/measures/Measurable.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.measures;
public interface Measurable<T extends MetricDef> {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/Measures.java b/sonar-squid/src/main/java/org/sonar/squid/measures/Measures.java
index 12d2765ac76..9ee58e5e5e5 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/measures/Measures.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/measures/Measures.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.measures;
import java.util.IdentityHashMap;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/Metric.java b/sonar-squid/src/main/java/org/sonar/squid/measures/Metric.java
index 253e2ea5aa4..327abeb9e8a 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/measures/Metric.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/measures/Metric.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.measures;
public enum Metric implements MetricDef {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/MetricDef.java b/sonar-squid/src/main/java/org/sonar/squid/measures/MetricDef.java
index 660b32afa52..cc62b45dc43 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/measures/MetricDef.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/measures/MetricDef.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.measures;
public interface MetricDef {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/NoAggregationFormula.java b/sonar-squid/src/main/java/org/sonar/squid/measures/NoAggregationFormula.java
index 44609896f46..a1adb586ed8 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/measures/NoAggregationFormula.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/measures/NoAggregationFormula.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.measures;
import java.util.Collection;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/PublicDocumentedApiDensityFormula.java b/sonar-squid/src/main/java/org/sonar/squid/measures/PublicDocumentedApiDensityFormula.java
index a6ee6e906ea..34f6f2c6b24 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/measures/PublicDocumentedApiDensityFormula.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/measures/PublicDocumentedApiDensityFormula.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.measures;
public class PublicDocumentedApiDensityFormula implements CalculatedMetricFormula {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/measures/SumAggregationFormula.java b/sonar-squid/src/main/java/org/sonar/squid/measures/SumAggregationFormula.java
index aface2e2d63..a66753a436e 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/measures/SumAggregationFormula.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/measures/SumAggregationFormula.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.measures;
import java.util.Collection;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/recognizer/CamelCaseDetector.java b/sonar-squid/src/main/java/org/sonar/squid/recognizer/CamelCaseDetector.java
index 60e4c1d2027..665a0c7e416 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/recognizer/CamelCaseDetector.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/recognizer/CamelCaseDetector.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.recognizer;
public class CamelCaseDetector extends Detector {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/recognizer/CodeRecognizer.java b/sonar-squid/src/main/java/org/sonar/squid/recognizer/CodeRecognizer.java
index 7a8a1c14349..12e6324f305 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/recognizer/CodeRecognizer.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/recognizer/CodeRecognizer.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.recognizer;
import java.util.ArrayList;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/recognizer/ContainsDetector.java b/sonar-squid/src/main/java/org/sonar/squid/recognizer/ContainsDetector.java
index f0ac480594b..a0616a13175 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/recognizer/ContainsDetector.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/recognizer/ContainsDetector.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.recognizer;
import java.util.Arrays;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/recognizer/Detector.java b/sonar-squid/src/main/java/org/sonar/squid/recognizer/Detector.java
index 7fa1083b8a1..95a4db2dab0 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/recognizer/Detector.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/recognizer/Detector.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.recognizer;
public abstract class Detector {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/recognizer/EndWithDetector.java b/sonar-squid/src/main/java/org/sonar/squid/recognizer/EndWithDetector.java
index 066a35c2e5f..0b3cbe7a20c 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/recognizer/EndWithDetector.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/recognizer/EndWithDetector.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.recognizer;
public class EndWithDetector extends Detector {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/recognizer/KeywordsDetector.java b/sonar-squid/src/main/java/org/sonar/squid/recognizer/KeywordsDetector.java
index a4e708f8fe5..490c321a8c0 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/recognizer/KeywordsDetector.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/recognizer/KeywordsDetector.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.recognizer;
import java.util.Arrays;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/recognizer/LanguageFootprint.java b/sonar-squid/src/main/java/org/sonar/squid/recognizer/LanguageFootprint.java
index 469118a57b8..1d817ee11fc 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/recognizer/LanguageFootprint.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/recognizer/LanguageFootprint.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.recognizer;
import java.util.Set;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/recognizer/RegexDetector.java b/sonar-squid/src/main/java/org/sonar/squid/recognizer/RegexDetector.java
index 0ffa49303a5..304d9991a58 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/recognizer/RegexDetector.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/recognizer/RegexDetector.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.recognizer;
import java.util.regex.Matcher;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/text/Line.java b/sonar-squid/src/main/java/org/sonar/squid/text/Line.java
index ef633b4c79f..77add8235a4 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/text/Line.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/text/Line.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.text;
import org.apache.commons.lang.StringUtils;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/text/LineContextHandler.java b/sonar-squid/src/main/java/org/sonar/squid/text/LineContextHandler.java
index 097478c9f85..3cf490600a6 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/text/LineContextHandler.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/text/LineContextHandler.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.text;
abstract class LineContextHandler {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/text/LinesFactory.java b/sonar-squid/src/main/java/org/sonar/squid/text/LinesFactory.java
index 6e98de3da35..3314b5f953b 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/text/LinesFactory.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/text/LinesFactory.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.text;
import java.io.BufferedReader;
diff --git a/sonar-squid/src/main/java/org/sonar/squid/text/LiteralValueHandler.java b/sonar-squid/src/main/java/org/sonar/squid/text/LiteralValueHandler.java
index 907c87827c9..802a421c35f 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/text/LiteralValueHandler.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/text/LiteralValueHandler.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.text;
public class LiteralValueHandler extends LineContextHandler {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/text/MultiLinesCommentHandler.java b/sonar-squid/src/main/java/org/sonar/squid/text/MultiLinesCommentHandler.java
index 5aeaadd12ce..1fa85a44d0b 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/text/MultiLinesCommentHandler.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/text/MultiLinesCommentHandler.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.text;
public class MultiLinesCommentHandler extends LineContextHandler {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/text/SingleLineCommentHandler.java b/sonar-squid/src/main/java/org/sonar/squid/text/SingleLineCommentHandler.java
index f20861a96d8..c9b2e9cabae 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/text/SingleLineCommentHandler.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/text/SingleLineCommentHandler.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.text;
public class SingleLineCommentHandler extends LineContextHandler {
diff --git a/sonar-squid/src/main/java/org/sonar/squid/text/Source.java b/sonar-squid/src/main/java/org/sonar/squid/text/Source.java
index 5087aaba331..aab0d1ba237 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/text/Source.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/text/Source.java
@@ -19,15 +19,15 @@
*/
package org.sonar.squid.text;
+import org.sonar.squid.measures.Metric;
+import org.sonar.squid.recognizer.CodeRecognizer;
+
import java.io.Reader;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
-import org.sonar.squid.measures.Metric;
-import org.sonar.squid.recognizer.CodeRecognizer;
-
public class Source {
private List<Line> lines = new ArrayList<Line>();
diff --git a/sonar-squid/src/main/java/org/sonar/squid/text/StringArrayReader.java b/sonar-squid/src/main/java/org/sonar/squid/text/StringArrayReader.java
index 1c923d0adc7..e079e427057 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/text/StringArrayReader.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/text/StringArrayReader.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.squid.text;
import java.io.IOException;