A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/5452 below:

Suppression comment has no effect due to finding at wrong position in case of JavaDoc comment · Issue #5452 · pmd/pmd · GitHub

Affects PMD Version: 7.9.0

Rule: PackageCase

Description:

The NOPMD comment does not work correctly in PMD 7.9.0 if the line preceding is JavaDoc.

Maybe regression of #4939?

Code Sample demonstrating the issue:

/**
*/
package foo.Bar; //NOPMD upper-case package name ok

public class Baz { }

Steps to reproduce:

PMD 7.8.0: OK, finding correctly suppressed:

$ ./pmd-bin-7.8.0/bin/pmd check --rulesets=category/java/codestyle.xml/PackageCase -d foo --no-progress --no-cache

PMD 7.9.0: NOT OK, finding not correctly suppressed:

$ ./pmd-bin-7.9.0/bin/pmd check --rulesets=category/java/codestyle.xml/PackageCase -d foo --no-progress --no-cache
foo/Bar/Baz.java:1:     PackageCase:    Package name contains upper case characters

Running PMD through: CLI | Ant | Maven | Gradle | Designer | Other


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4