Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarich committed Nov 29, 2013
2 parents 51c3ee4 + c44d654 commit 162a746
Show file tree
Hide file tree
Showing 52 changed files with 128 additions and 111 deletions.
31 changes: 24 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
<description>Enables analysis of Scala projects into Sonar.</description>
<url>http://docs.codehaus.org/display/SONAR/Scala+Plugin</url>
<inceptionYear>2011</inceptionYear>
<organization>
<name>Felix Müller</name>
</organization>

<licenses>
<license>
Expand All @@ -33,6 +30,7 @@
<id>fmueller</id>
<name>Felix Müller</name>
<email>felix.mueller.berlin@googlemail.com</email>
<timezone>+1</timezone>
</developer>
</developers>

Expand Down Expand Up @@ -67,8 +65,6 @@
<sonar.pluginName>Scala</sonar.pluginName>
<sonar.pluginClass>org.sonar.plugins.scala.ScalaPlugin</sonar.pluginClass>

<license.mailto>felix.mueller.berlin@googlemail.com</license.mailto>

<scala.version>2.9.1</scala.version>
</properties>

Expand Down Expand Up @@ -177,19 +173,40 @@
<plugin>
<groupId>com.mycila.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
<version>1.9.0</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<properties>
<owner>All contributors</owner>
<year>2011 - 2013</year>
</properties>
<includes>
<include>src/main/java/**</include>
<include>src/test/java/**</include>
<include>src/main/scala/**</include>
<include>src/test/java/**</include>
<include>src/test/scala/**</include>
</includes>
<mapping>
<java>SLASHSTAR_STYLE</java>
<scala>SLASHSTAR_STYLE</scala>
</mapping>
<strictCheck>true</strictCheck>
</configuration>
<executions>
<execution>
<id>add-license-headers</id>
<phase>process-sources</phase>
<goals>
<goal>format</goal>
</goals>
</execution>
<execution>
<id>enforce-license-headers</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/sonar/plugins/scala/ScalaPlugin.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -70,4 +70,4 @@ private static String getPathByResource(String name) {
String path = ScalaPlugin.class.getClassLoader().getResource(name).getPath();
return path.substring("file:".length(), path.lastIndexOf('!'));
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/sonar/plugins/scala/cpd/ScalaTokenizer.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/sonar/plugins/scala/language/Comment.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/sonar/plugins/scala/language/Scala.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/sonar/plugins/scala/language/ScalaFile.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/sonar/plugins/scala/util/StringUtils.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/org/sonar/plugins/scala/compiler/Lexer.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/org/sonar/plugins/scala/compiler/Parser.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/org/sonar/plugins/scala/compiler/Token.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/org/sonar/plugins/scala/metrics/package.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/org/sonar/plugins/scala/ScalaPluginTest.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Sonar Scala Plugin
* Copyright (C) 2011 Felix Müller
* felix.mueller.berlin@googlemail.com
* Copyright (C) 2011 - 2013 All contributors
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -47,4 +47,4 @@ public void shouldHaveSurefirePlugin() {
public void shouldGetPathToDependencies() {
assertThat(ScalaPlugin.getPathToScalaLibrary(), containsString("scala-library"));
}
}
}
Loading

0 comments on commit 162a746

Please sign in to comment.