aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-squid/src/main/java/org/sonar/squid/text
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-01-31 01:11:24 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2011-01-31 01:13:14 +0100
commit4daa310730284a784548d8b7857a530ff24cc702 (patch)
tree58f28a4a67f76fdba537d7facf4dc19a33ff5104 /sonar-squid/src/main/java/org/sonar/squid/text
parentcffdb0bdd4c32f5eec12d44a551b73c8fabb6b37 (diff)
downloadsonarqube-4daa310730284a784548d8b7857a530ff24cc702.tar.gz
sonarqube-4daa310730284a784548d8b7857a530ff24cc702.zip
Add profile to check copyright headers + fix some badly formatted headers
Diffstat (limited to 'sonar-squid/src/main/java/org/sonar/squid/text')
-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
8 files changed, 10 insertions, 3 deletions
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;