How do I get IntelliJ to give me a warning if I have failed to provide JavaDoc description/annotation for public fields and methods?

For older versions of
IntelliJ:
Preferences > Inspections > JavaDoc issues > Declaration has JavaDoc problems

For newer versions of
IntelliJ:
File > Settings… > Editor > Inspections > Java > JavaDoc issues > Declaration has JavaDoc problems

Make sure to move “scope” slider to desired level of visibility for packages, classes, methods, fields and inner classes, by default it is set to “none”. You can also set “severity” level.

enter image description here

In addition to continuous monitoring, you can also invoke inspections on demand with Cmd-Option-Shift-I, and enforce inspections prior to VCS commits(although it does not prevent you from committing your code with command line). You can also create specific inspection profiles, one for the university submissions, and another for your side projects, for example.

enter image description here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)