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 — [java] AvoidUsingHardCodedIP: violation message should mention the hard coded address · Issue #6169 · pmd/pmd

[java] AvoidUsingHardCodedIP: violation message should mention the hard coded address #6169

New issue
Copy link
New issue
Copy link
Closed
#6170
Closed
[java] AvoidUsingHardCodedIP: violation message should mention the hard coded address#6169
#6170
Copy link
Labels
an:enhancementAn improvement on existing features / rules
Milestone
7.18.0

Description

@adangel
adangel
opened on Oct 27, 2025
Issue body actions

Rule: AvoidUsingHardCodedIP

Since the rule checks for literals in general, not just in assignments, maybe the error message for this rule should mention the hardcoded IP and not the variable it's assigned to? Or at least do that as a fallback if there is no assignment ancestor?

Originally posted by @zbynek in #6129 (comment)

Activity

  1. adangel
    changed the title [-][java] AvoidUsingHardCodedIP - violation message should mention the hard coded IP[/-] [+][java] AvoidUsingHardCodedIP: violation message should mention the hard coded IP[/+] on Oct 27, 2025
  2. adangel
    added
    an:enhancementAn improvement on existing features / rules
    on Oct 27, 2025
  3. adangel
    changed the title [-][java] AvoidUsingHardCodedIP: violation message should mention the hard coded IP[/-] [+][java] AvoidUsingHardCodedIP: violation message should mention the hard coded address[/+] on Oct 27, 2025
  4. adangel
    added a commit that references this issue on Oct 27, 2025

    [java] Fix pmd#6169: AvoidUsingHardCodedIP - mention address in message

    This issue will close once commit 17f835d is merged into the 'main' branch.
    17f835d
  5. adangel
    added this to the 7.18.0 milestone on Oct 27, 2025
  6. adangel
    added 2 commits that reference this issue on Oct 29, 2025

    [java] Fix pmd#6169: AvoidUsingHardCodedIP - mention address in message

    This issue will close once commit 44b4462 is merged into the 'main' branch.
    44b4462

    [java] Fix pmd#6169: AvoidUsingHardCodedIP - mention address in message

    This issue will close once commit a569384 is merged into the 'main' branch.
    a569384
  7. adangel
    closed this as completedin #6170on Oct 29, 2025
  8. adangel
    added a commit that references this issue on Oct 29, 2025

    [java] Fix #6169: AvoidUsingHardCodedIP - mention address in message (#…

    This issue will close once commit 998c292 is merged into the 'main' branch.
    998c292
  9. magwas
    added a commit that references this issue on Nov 1, 2025

    [java] Fix pmd#6169: AvoidUsingHardCodedIP - mention address in message

    This issue will close once commit 47dad5b is merged into the 'main' branch.
    47dad5b
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 / rules

    Type

    No type

    Projects

    No projects

      Milestone

      • 7.18.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.