Re: CrossLanguageRegexpHeader only working forjava

"Oliver Burn" <[email protected]> Sun, 23 Nov 2008 22:19:42 +1100
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
I would suggest asking on the Maven mailing list. My knowledge of Maven is
limited.

On Fri, Nov 21, 2008 at 01:12, Tim Foster <[email protected]> wrote:

>  Thanks for the quick reply.  I am invoking it using the Maven plugin,
> configured as such:
>
>
>
>       <plugin>
>
>         <groupId>org.apache.maven.plugins</groupId>
>
>         <artifactId>maven-checkstyle-plugin</artifactId>
>
>         <executions>
>
>           <execution>
>
>             <phase>verify</phase>
>
>             <configuration>
>
>               <configLocation>akorri-checkstyle.xml</configLocation>
>
>               <failOnViolation>true</failOnViolation>
>
>               <outputFileFormat>xml</outputFileFormat>
>
>               <systemProperties>
>
>                 <property>
>
>                   <name>net.sourceforge.cobertura.datafile</name>
>
>                   <value>${basedir}/target/cobertura/cobertura.ser</value>
>
>                 </property>
>
>               </systemProperties>
>
>             </configuration>
>
>             <goals>
>
>               <goal>check</goal>
>
>             </goals>
>
>           </execution>
>
>         </executions>
>
>       </plugin>
>
>
>
> My assumption, based on your question, is that the problem stems from Maven
> not processing the other file types (e.g., in this case, groovy).  If that
> is the case, I'm not sure how to make that happen (GMaven?).
>
>
>
> Tim
>
>
>  ------------------------------
>
> *From:* Oliver Burn [mailto:[email protected]]
> *Sent:* Thursday, November 20, 2008 12:03 AM
>
>
>
> How are you invoking Checkstyle?
>
> Are you only passing in a list of Java files?
>
> On Thu, Nov 20, 2008 at 03:11, Tim Foster <[email protected]> wrote:
>
> Hello.  I'm trying to use the CrossLanguageRegexpHeader check to validate
> headers for all of my source code.  However, it is only working for java.
> Here is my configuration file entry with the specific regexp and other
> checks extracted for simplicity's sake:
>
>
>
> <module name="Checker">
>
>     <property name="severity" value="warning"/>
>
>      ...
>
>     <module name="CrossLanguageRegexpHeader">
>
>       <property name="header" value="<my header regexp>" />
>
>       <property name="multiLines" value="1, 2" />
>
>       <property name="severity" value="error"/>
>
>       <property name="fileExtensions" value="java, groovy" />
>
>     </module>
>
> </module>
>
>
>
> The CrossLanguageRegexpHeader module is running under the context of the
> Checker module, not the TreeWalker module, as directed by the documentation,
> so I'm expecting the header check to be applied to groovy files as well.
> However, it only flags errors on java files.
>
>
>
> Any guidance would be appreciated.
>
>
>
> Tim
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Checkstyle-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/checkstyle-user
>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Checkstyle-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user