2020-02-13 18:40:25 +01:00
|
|
|
---
|
2021-04-30 12:25:55 +02:00
|
|
|
name: Rule violation (false-negative)
|
|
|
|
about: Let us know about a false-negative (no violation is reported on problematic code)
|
2020-02-13 18:40:25 +01:00
|
|
|
title: ''
|
2021-04-29 10:53:41 +02:00
|
|
|
labels: 'a:false-negative'
|
2020-02-13 18:40:25 +01:00
|
|
|
assignees: ''
|
|
|
|
|
|
|
|
---
|
|
|
|
<!-- Please, prefix the report title with the language it applies to within brackets, such as [java] or [apex] -->
|
|
|
|
|
|
|
|
**Affects PMD Version:**
|
|
|
|
|
|
|
|
**Rule:**
|
|
|
|
|
2020-03-21 11:44:22 +01:00
|
|
|
Please provide the rule name and a link to the rule documentation:
|
2023-03-30 15:28:56 +02:00
|
|
|
<https://docs.pmd-code.org/latest/pmd_rules_XXX_XXX.html#XXX>
|
2020-03-21 11:44:22 +01:00
|
|
|
|
2020-02-13 18:40:25 +01:00
|
|
|
**Description:**
|
|
|
|
|
|
|
|
**Code Sample demonstrating the issue:**
|
|
|
|
|
2022-10-06 17:41:39 +02:00
|
|
|
```java
|
2020-02-13 18:40:25 +01:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
**Expected outcome:**
|
|
|
|
|
2021-04-29 10:53:41 +02:00
|
|
|
PMD should report a violation at line ..., but doesn't. This is a false-negative.
|
2020-02-13 18:40:25 +01:00
|
|
|
|
|
|
|
**Running PMD through:** *[CLI | Ant | Maven | Gradle | Designer | Other]*
|