Environment:
- Operating system: Windows 11
- SonarQube for IntelliJ plugin version: 11.6.0.83783
- IntelliJ version: 2025.2.5
- Programming language you’re coding in: Java
- Is connected mode used: SonarQube Server Enterprise Edition v2025.1.3 (110580)
Description of the problem / question 1:
There is no equivalent to the {@return foo} syntax in the new Markdown Javadoc comments introduced with Java 23/25. Instead, JEP 467 states:
JavaDoc tags, both inline tags such as
{@inheritDoc}and block tags such as@paramand@return, may be used in Markdown documentation comments
But unfortunately, SonarQube for IDE creates a false warning java:S125 This block of commented-out lines of code should be removed.
/**
* {@return foo}
*/
is fine but
/// {@return foo}
isn’t.
Description of the problem / question 2:
Same issue occurs with code examples in Markdown JavaDoc:
/**
* Use like this:
*
* <pre>
* Instant fooTime = bar.getDisconnectTime();
* </pre>
*/
works fine but
/// Use like this:
/// ```
/// Instant fooTime = bar.getDisconnectTime();
/// ```
again results in wrong SonarQube for IDE warning java:S125 This block of commented-out lines of code should be removed.
It looks to me as if markdown Javadoc comments are classified as regular block comments, which they shouldn’t.