[
https://issues.apache.org/jira/browse/MCHECKSTYLE-216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MCHECKSTYLE-216.
--------------------------------------
Resolution: Auto Closed
> Source and resource directory's basedir is not stripped in report
> -----------------------------------------------------------------
>
> Key: MCHECKSTYLE-216
> URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-216
> Project: Maven Checkstyle Plugin
> Issue Type: Improvement
> Components: checkstyle:checkstyle
> Affects Versions: 2.11
> Reporter: Michael Osipov
> Priority: Major
>
> 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
(v7.6.3#76005)