apache / apache/storm

[STORM-3850] Static code analyzer (PMD) Errors

Open
#7,632 1 comment 0 reactions 0 assignees View on GitHub
good first issue imported-jira-issue rfe
Dominant language
Java
Stars
6.7k
Forks
4k
Avg merge
1d 7h
Merged PRs (30d)
62

Description

Static Code Analyzer (using PMD plugin) reports a large number of errors.

Many of them are parsing errors by PMD plugin itself. This appears to be because the parse is assuming that the target source is below JDK 1.6.

(1) Fix this to assume JDK 1.8 source so that method references are properly parsed.

(2) Fix the java code to remove PMD warnings

Changing the code to 1.8 may reveal new PMC exceptions that were hidden because of PMD plugin parser errors.

(3) Fix new java code PMD errors uncovered when target jdk is switched to jdk8 and even jdk11

---
Originally reported by bipinprasad, imported from: Static code analyzer (PMD) Errors


  • assignee: bipinprasad
  • status: In Progress
  • priority: Major
  • resolution: Unresolved
  • imported: 2025-01-24

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the PMD plugin configuration and running the static analyzer to separate parser errors from Java PMD warnings. Done means the analyzer parses JDK 8 source, newly exposed JDK 8 or JDK 11 issues are addressed, and the reported Java PMD errors are removed.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.