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?
source share