Eclipse - how to configure javadoc warnings only for specific folders, not for the whole project

Some of my colleagues are not disciplined and do not always write documents about their classes (not always = never). I tried to get them to write documentation by setting project warnings for missing javadocs comments. We have two source folders "src" and "tests" - obviously, not all @Test methods need documentation, and this warning is redundant. But now all undocumented tests have received these annoying warnings, the project has received hundreds of warnings, and I'm afraid that some real dangerous warnings will be missed (because there are hundreds of useless ones).

How to set warnings only in the 'src' folder and ignore warnings in the 'tests' folder?

+6
source share
1 answer

I am afraid there are no settings to disable the missing javadoc check strictly for test classes / methods. There was even a proposal posted on the Eclipse bugzilla here , but in the end it came to a standstill.

The only, undoped way to solve this problem is to annotate those test methods using the @SuppressWarnings("javadoc") annotation.

+5
source

Source: https://habr.com/ru/post/902381/


All Articles