#532 package-info check doesn't consider multiple source trees

Future
closed
nobody
2
2016-02-28
2010-02-15
No

The check for missing package-info.java files doesn't consider the ability to have multiple source trees in one project. This is eg. often the case for separating the unit tests from the source code. Right now, every unit test contains a warning that there is no package-info.java when these are placed in the normal source tree, even though it is not required and would be completely misleading to have several package-info files for the same package.

Discussion

  • Oliver Burn

    Oliver Burn - 2010-02-15

    I use suppressions to deal with this. For example the following will suppress all errors about Package Javadoc in the src/tests directory:

    <suppress checks="JavadocPackage" files="src/tests/"/>
    
     
  • Oliver Burn

    Oliver Burn - 2010-02-15

    change to be a feature request

     
  • Roman Ivanov

    Roman Ivanov - 2016-02-28
    • status: open --> closed
    • Group: --> Future
     
  • Roman Ivanov

    Roman Ivanov - 2016-02-28

    suppression is the best way to avoid this violation. If you have problems with usage of suppression or there is nuance that we dod not see, please be welcome to mail-list for discussion.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks