[ https://issues.apache.org/jira/browse/RAT-202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Philipp Ottlinger resolved RAT-202. ----------------------------------- Resolution: Fixed Fix Version/s: 0.12 Fixed in revisions: * http://svn.apache.org/r1681213 * http://svn.apache.org/r1681382 Added capability to run tests from within IntelliJ that is using a different base path thus needs some path tweaks for file reading and test expectations if file paths are part of the test data. > If no unapproved files are found report should not contain text to show their > contents > -------------------------------------------------------------------------------------- > > Key: RAT-202 > URL: https://issues.apache.org/jira/browse/RAT-202 > Project: Apache Rat > Issue Type: Improvement > Affects Versions: 0.11 > Reporter: Philipp Ottlinger > Assignee: Philipp Ottlinger > Priority: Minor > Fix For: 0.12 > > > h2. Motivation > At the moment each report contains: > {code} > Files with unapproved licenses: > .... > Printing headers for text files without a valid license header... > {code} > This should only appear if there are files without valid licenses. > h2. Result > [Example > project|https://github.com/ottlinger/creadur-rat-examples/tree/master/RAT-202] > working locally with 0.12-SNAPSHOT shows: > h3. Report with errors > {code} > ***************************************************** > Summary > ------- > Generated at: 2015-05-23T22:38:59+02:00 > Notes: 1 > Binaries: 0 > Archives: 0 > Standards: 4 > Apache Licensed: 1 > Generated Documents: 0 > JavaDocs are generated, thus a license header is optional. > Generated files do not require license headers. > 1 Unknown Licenses > ***************************************************** > Files with unapproved licenses: > foo.txt > ***************************************************** > ***************************************************** > Files with Apache License headers will be marked AL > Binary files (which do not require any license headers) will be marked B > Compressed archives will be marked A > Notices, licenses etc. will be marked N > N README.txt > AL pom.xml > MITG2 GPLMIT.txt > MIT MITLIC.txt > !????? foo.txt > > ***************************************************** > Printing headers for text files without a valid license header... > > ===================================================== > == File: foo.txt > ===================================================== > Contains no valid license - what a shame :-( > {code} > h3. Report without any RAT errors > {code} > ***************************************************** > Summary > ------- > Generated at: 2015-05-23T22:36:42+02:00 > Notes: 1 > Binaries: 0 > Archives: 0 > Standards: 3 > Apache Licensed: 1 > Generated Documents: 0 > JavaDocs are generated, thus a license header is optional. > Generated files do not require license headers. > 0 Unknown Licenses > ***************************************************** > Files with Apache License headers will be marked AL > Binary files (which do not require any license headers) will be marked B > Compressed archives will be marked A > Notices, licenses etc. will be marked N > N README.txt > AL pom.xml > MITG2 GPLMIT.txt > MIT MITLIC.txt > > ***************************************************** > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)