A RetroSearch Logo

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

Search Query:

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

[doc] Improve documentation on usage of violationSuppressXPath · Issue #4901 · pmd/pmd · GitHub

Is your feature request related to a problem? Please describe.
While migrating to PMD 7 I faced with extreme troubles how to rewrite old suppressions to a new style.
Example from docs doesn't work for me https://docs.pmd-code.org/pmd-doc-7.0.0/pmd_userdocs_suppressing_warnings.html

<!-- doesn't work in PMD 7 -->
<property name="violationSuppressXPath" value="./ancestor::ClassDeclaration[contains(@Image, 'Bean')]"/>

Describe the solution you'd like
A good documentation with working examples

I found a clue in #4707


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