[ 
https://jira.codehaus.org/browse/MOJO-1815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=293391#comment-293391
 ] 

Garvin LeClaire commented on MOJO-1815:
---------------------------------------

Michael,

At this time since CodeNarc only takes a single base directory you can change 
the configuration of the sourceDirectory for the CodeNarc plugin to the src 
directory which will be high enough to se the source and test source then. 


<project>
  ...
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>codenarc-maven-plugin</artifactId>
        <version>0.16.1-beta-2-SNAPSHOT</version>
        <configuration>
          <sourceDirectory>${basdir}/src</sourceDirectory>
        </configuration>
      </plugin>
    </plugins>
  </reporting>
  ...
</project>

For finer granularity you can also use the include or exclude option.


                
> codenarc-maven-plugin xml file (CodeNarc.xml) contains a package element with 
> path attribute with no value.
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: MOJO-1815
>                 URL: https://jira.codehaus.org/browse/MOJO-1815
>             Project: Mojo
>          Issue Type: Bug
>          Components: codenarc
>            Reporter: Michael Damman
>            Assignee: Garvin LeClaire
>
> This maybe working as designed, but the CodeNarc.xml file contains a package 
> elment with a path attribute with no value.
> <Package path='' totalFiles='3' filesWithViolations='1' priority1='0' 
> priority2='1' priority3='0'>
> When using the jenkins Violations plugin, it throws an error because it is 
> checking that path attribute is not blank.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to