[ 
https://jira.codehaus.org/browse/MCHECKSTYLE-216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov updated MCHECKSTYLE-216:
---------------------------------------

    Description: 
Basedirs are not stripped and full path is written to the report table, e.g. 
{{src/main/java/org...}} where it should read {{org/...}]. This consumes more 
space and more over, JXR links are broken.

The PMD plugin solves this issue by
{code}
this.currentFilename =
                StringUtils.substring( currentFilename, 
fileInfo.getSourceDirectory().getAbsolutePath().length() + 1 );
{code}
as seen in 
[here|http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReportGenerator.java?view=markup#l105].

  was:
Basedirs are not stripped and full path is written to the report table, e.g. 
{{src/main/java/org...}} where it should read {{org/...}. This consumes more 
space and more over, JXR links are broken.

The PMD plugin solves this issue by
{code}
this.currentFilename =
                StringUtils.substring( currentFilename, 
fileInfo.getSourceDirectory().getAbsolutePath().length() + 1 );
{code}
as seen in 
[here|http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReportGenerator.java?view=markup#l105].


> Source and resource directory's basedir is not stripped in report
> -----------------------------------------------------------------
>
>                 Key: MCHECKSTYLE-216
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-216
>             Project: Maven Checkstyle Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.11
>            Reporter: Michael Osipov
>
> Basedirs are not stripped and full path is written to the report table, e.g. 
> {{src/main/java/org...}} where it should read {{org/...}]. This consumes more 
> space and more over, JXR links are broken.
> The PMD plugin solves this issue by
> {code}
> this.currentFilename =
>                 StringUtils.substring( currentFilename, 
> fileInfo.getSourceDirectory().getAbsolutePath().length() + 1 );
> {code}
> as seen in 
> [here|http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReportGenerator.java?view=markup#l105].



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to