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] Update remaining properties to use PropertyFactory by oowekyala · Pull Request #2450 · pmd/pmd

Conversation

@oowekyala

@oowekyala oowekyala commented Apr 27, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Describe the PR

  • Remove most remaining usages of old properties (eg BooleanProperty, StringProperty) to use PropertyFactory. These are stuck on master because they're public.
  • In some cases, when the properties were deprecated, remove them.
  • Some of the old properties are still there, when they use a null default value. This is something the new property framework disallows explicitly. Such properties should be converted to use an Optional value, but the framework doesn't support that yet. We can update them when the framework is refactored.
  • This also extracts something from the rule AvoidDuplicateLiterals: delimiter escaping in multi-valued properties. I don't think we need to completely remove delimiter logic, if anything, this enables backwards compatibility with the current framework. Keeping it also allows specifying some list values more concisely.

Related issues

#1432

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by travis)
  • Added (in-code) documentation (if needed)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
oowekyala added 7 commits April 27, 2020 18:36
@oowekyala
Checkout updated rules
e6f5b4c
@oowekyala
Extract escaping function
3a44549
@oowekyala
Checkout renderers
adddb1b
@oowekyala
Update some more usages
89542dd
@oowekyala
Checkout other replacements
723b34e
@oowekyala
Cleanup
c3670e3
@oowekyala
Fix tests
8f363ce
@oowekyala oowekyala added this to the 7.0.0 milestone Apr 27, 2020
@oowekyala
oowekyala marked this pull request as draft May 1, 2020 15:41
oowekyala added 3 commits May 21, 2020 17:31
@oowekyala
Delete redundant tests
5bafd8e
@oowekyala
Merge branch '7.0.x' into update-all-properties
adc3fcb
@oowekyala
Use CaseConvention to deprecate some stuff
4b89161
@ghost

ghost commented May 21, 2020

Copy link
Copy Markdown
1 Message
📖 No java rules are changed!

Generated by 🚫 Danger

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@oowekyala
oowekyala marked this pull request as ready for review June 12, 2020 15:30
@oowekyala
Merge branch '7.0.x' into update-all-properties
05715ac
@oowekyala

oowekyala commented Jun 14, 2020

Copy link
Copy Markdown
Member Author

I'm also going to merge this as it blocks #1432

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@oowekyala
oowekyala merged commit 75c7971 into pmd:pmd/7.0.x Jun 14, 2020
@oowekyala
oowekyala deleted the update-all-properties branch June 14, 2020 17:06
@adangel adangel mentioned this pull request Jun 21, 2020
PMD 7 Miscellaneous Tasks #2524
Closed
6 tasks done
adangel
adangel reviewed Jun 21, 2020
View reviewed changes
Comment thread pmd-core/src/main/java/net/sourceforge/pmd/renderers/TextColorRenderer.java
// What? TODO 7.0.0 Use a boolean property
public static final StringProperty COLOR = new StringProperty("color",
"Enables colors with anything other than 'false' or '0'.", "yes", 0);
// TODO should the "textcolor" renderer really support "optional" colors?

@adangel adangel Jun 21, 2020

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On first glance, I'd say, we should remove this property, also the system property. I've added a task to #2524

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
This was referenced Jan 10, 2023
[core] Implementation plan for property framework changes #1432
Closed
[core] Remove unnecessary property color and system property pmd.color in TextColorRenderer #4312
Closed
@adangel adangel mentioned this pull request Jan 23, 2023
PMD 7 Tracking Issue #3898
Closed
55 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@adangel adangel adangel left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

7.0.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@oowekyala @adangel
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.