Skip to content

[core] Enhance PMD output to include source code snippet similar to CPD #3349

@gurmsc5

Description

@gurmsc5

Is your feature request related to a problem? Please describe.
Line and column numbers included in PMD outputs like HTML, CSV and XML don't tell the full story. Sometimes as a developer, it can be useful to see the code snippet that was captured by a given rule(similar to CPD).

Describe the solution you'd like
Include source code snippet in HTML, CSV, XML output and any other desired output format.

Describe alternatives you've considered
Create a separate tool to parse the files captured by PMD tool to retrieve the code snippet.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    an:enhancementAn improvement on existing features / rules

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions