pmd / pmd/pmd-eclipse-plugin

Show Find Suspect Cut and Paste for Java Source Files

Open
#87 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
99
Forks
42
Avg merge
20h 19m
Merged PRs (30d)
19

Description

When I right click a project and click on the PMD menu, I see the "Find Suspect Cut and Paste..." (FSCAP) menu item. When I right click a Java source file and click on the PMD menu, the FSCAP is not shown. Please show this menu item for Java source files and packages.

I have a long test class and it has several cut and paste problems in it. I would like to avoid running FSCAP for the entire project when I only need it for 1 file.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the PMD menu handling for projects, Java source files, and packages, then compare how the Find Suspect Cut and Paste action is exposed. Done means the FSCAP menu item appears for Java files and packages and runs only against the selected scope rather than the entire project.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.