GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [core] PMD should display number of rules violated or errors found · Issue #1995 · pmd/pmd

[core] PMD should display number of rules violated or errors found #1995

New issue
Copy link
New issue
Copy link
Closed
#6823
Closed
[core] PMD should display number of rules violated or errors found#1995
#6823
Copy link
Labels
an:enhancementAn improvement on existing features / rulesgood first issueA great starting point for new contributorsin:cliAffects the PMD Command Line Interface
Milestone
7.27.0

Description

@linusjf
linusjf
opened on Sep 1, 2019
Issue body actions

Affects PMD Version:
6.17

Rule:
All rulesets.

Description:
PMD output does not inform the user as to the number of rules contravened while running the tool. The user has to look at the output file.

Code Sample demonstrating the issue:

Sep 01, 2019 9:42:45 AM net.sourceforge.pmd.cache.FileAnalysisCache loadFromFile
INFO: Analysis cache loaded
Sep 01, 2019 9:43:02 AM net.sourceforge.pmd.cache.AbstractAnalysisCache checkValidity
INFO: Analysis cache invalidated, execution classpath changed.
Sep 01, 2019 9:43:07 AM net.sourceforge.pmd.cache.FileAnalysisCache persist
INFO: Analysis cache updated

Running PMD through:
[CLI | Ant]

Activity

Next
  1. jsotuyod
    changed the title [-][java] PMD must display number of rules contravened or errors found. [/-] [+][core] PMD must display number of rules contravened or errors found[/+] on Sep 2, 2019
  2. jsotuyod
    added
    an:enhancementAn improvement on existing features / rules
    good first issueA great starting point for new contributors
    on Sep 2, 2019
  3. agkanos commented on Sep 28, 2019

    @agkanos
    agkanos
    on Sep 28, 2019 · Hidden as outdated
    show commentMore actions
  4. linusjf commented on Oct 8, 2019

    @linusjf
    linusjf
    on Oct 8, 2019 · Hidden as off-topic
    Author
    show commentMore actions
  5. linusjf commented on Oct 8, 2019

    @linusjf
    linusjf
    on Oct 8, 2019 · Hidden as off-topic
    Author
    show commentMore actions
  6. adangel commented on Oct 8, 2019

    @adangel
    adangel
    on Oct 8, 2019 · Hidden as off-topic
    show commentMore actions
  7. linusjf commented on Oct 8, 2019

    @linusjf
    linusjf
    on Oct 8, 2019 via email · Hidden as off-topic
    Author
    show commentMore actions
  8. linusjf commented on Oct 8, 2019

    @linusjf
    linusjf
    on Oct 8, 2019 via email · Hidden as off-topic
    Author
    show commentMore actions
  9. linusjf commented on Oct 9, 2019

    @linusjf
    linusjf
    on Oct 9, 2019 · Hidden as off-topic
    Author
    show commentMore actions
  10. linusjf commented on Oct 9, 2019

    @linusjf
    linusjf
    on Oct 9, 2019 · Hidden as off-topic
    Author
    show commentMore actions
  11. oowekyala commented on Oct 9, 2019

    @oowekyala
    oowekyala
    on Oct 9, 2019 · Hidden as off-topic
    show commentMore actions
  12. linusjf commented on Oct 9, 2019

    @linusjf
    linusjf
    on Oct 9, 2019 via email
    Author
    More actions
    No intention to parse the output, as yet. The original request was to display the number of errors. My mistake about the shell error codes. A glaring one.
  13. agkanos commented on Oct 9, 2019

    @agkanos
    agkanos
    on Oct 9, 2019
    More actions

    Hey guys sorry for taking so long to come back on this. I can see a similar implementation that already exists here. This is triggered by passing the flag: -f textcolor . What exactly are we looking from this enhancement?

    Ok I missed the: while running the tool

  14. oowekyala commented on Oct 9, 2019

    @oowekyala
    oowekyala
    on Oct 9, 2019
    Member
    More actions

    @ThanasisGkanos Tbh even with while running the tool I think the question is very vague. If it was the case that OP's looking for a progress indicator, then changing the exit code would have been pointless.

    @Fernal73 Why do you want to read the number of rules? Do you need to parse it or do you just think it would be useful info for an end-user? Are you asking for a progress indicator during the run, or just a summary line at the end? What renderer are you using?

    Reacted by Athanasios Gkanos and Linus Fernandes
  15. 13 remaining items

  16. 04Deek commented on Apr 29, 2022

    @04Deek
    04Deek
    on Apr 29, 2022
    More actions

    hii guys, I am intersted to look into [core] PMD must display number of rules contravened or errors found. I want to understand and confirm that, do we need to show proper count of errors found in each module to the user?

  17. adangel
    changed the title [-][core] PMD must display number of rules contravened or errors found[/-] [+][core] PMD must display number of rules violated or errors found[/+] on Apr 29, 2022
  18. adangel
    changed the title [-][core] PMD must display number of rules violated or errors found[/-] [+][core] PMD should display number of rules violated or errors found[/+] on Apr 29, 2022
  19. adangel commented on Apr 29, 2022

    @adangel
    adangel
    on Apr 29, 2022
    Member
    More actions

    Ok, I went through all the comments and hid all that were off topic.
    The task here is as follows:

    When you run PMD on the command line (see https://pmd.github.io/latest/pmd_userdocs_cli_reference.html), PMD just executes and terminates when it has finished. There is no visual output at all to tell the user e.g. "Found 11 violations. And there were 2 processing errors.".
    Or in case, no problems have been detected, the output could be something like "Found no violations.".
    Especially there is no output, if you write the report to a file (--report-file).

    See also https://github.com/pmd/pmd/wiki/Newcomers%27-Guide

    Reacted by 04Deek and Xiaohui
  20. adangel
    assigned
    04Deek
    on Apr 29, 2022
  21. adangel
    added
    in:cliAffects the PMD Command Line Interface
    on Jan 13, 2023
  22. adangel
    added this to the 7.x milestone on Jan 23, 2023
  23. abhinavashok commented on Dec 13, 2023

    @abhinavashok
    abhinavashok
    on Dec 13, 2023
    More actions

    Is anyone working on this ?

  24. adangel
    unassigned
    04Deek
    on Dec 14, 2023
  25. adangel commented on Dec 14, 2023

    @adangel
    adangel
    on Dec 14, 2023
    Member
    More actions

    @abhinavashok I don't think so.

  26. xiao-hui-ux commented on Oct 1, 2024

    @xiao-hui-ux
    xiao-hui-ux
    on Oct 1, 2024
    More actions

    Hi, I would want to work on this issue.

  27. DragonFSKY commented on Jun 28, 2026

    @DragonFSKY
    DragonFSKY
    on Jun 28, 2026
    Contributor
    More actions

    I don't see an active PR or assignee for this. I'm preparing a small CLI-only implementation that prints the existing violation/processing-error counts through the CLI reporter without changing report output or exit codes. Happy to defer if someone is actively working on it.

  28. UncleOwen
    modified the milestones: 7.x, 7.27.0 on Jul 5, 2026
  29. UncleOwen
    closed this as completedin #6823on Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    an:enhancementAn improvement on existing features / rulesgood first issueA great starting point for new contributorsin:cliAffects the PMD Command Line Interface

    Type

    No type

    Projects

    No projects

      Milestone

      • 7.27.0

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.