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] Deprecate regex property by oowekyala · Pull Request #1487 · pmd/pmd

Conversation

@oowekyala

@oowekyala oowekyala commented Nov 29, 2018

Copy link
Copy Markdown
Member

Refs #1432

I do this before StringProperty so that when updating the usages of StringProperty, we may convert some to a regex property where appropriate

Sorry, something went wrong.

Uh oh!

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

All reactions
oowekyala added 3 commits November 29, 2018 17:16
@oowekyala
Add regex property builder
f25be99
@oowekyala
Fix self type issue
2c92053
@oowekyala
Remove usages of RegexProperty
73cf377
@oowekyala oowekyala added this to the 6.10.0 milestone Nov 29, 2018
@ghost

ghost commented Nov 29, 2018

Copy link
Copy Markdown
1 Message
📖 This changeset introduces 0 new violations and 0 new errors,
removes 0 violations and 0 errors. Full report

Generated by 🚫 Danger

All reactions

Sorry, something went wrong.

Uh oh!

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

adangel
adangel approved these changes Nov 30, 2018
View reviewed changes

@adangel adangel left a comment

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.

Looks good.
I'd still add at least basic tests to PropertyDescriptorTest - so that we don't hit any surprises in 6.x with the new PropertyFactory...

Sorry, something went wrong.

Uh oh!

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

All reactions
@adangel adangel self-assigned this Nov 30, 2018
@oowekyala

oowekyala commented Nov 30, 2018

Copy link
Copy Markdown
Member Author

Good idea. I'll have some time for that next week

All reactions

Sorry, something went wrong.

Uh oh!

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

@oowekyala oowekyala added the is:WIP For PRs that are not fully ready, or issues that are actively being tackled label Nov 30, 2018
@adangel
adangel merged commit 73cf377 into pmd:master Nov 30, 2018
@adangel

adangel commented Nov 30, 2018

Copy link
Copy Markdown
Member

I've merged this one now and added some minimal tests in PropertyDescriptorTest.
We probably should also test the conversion from/to String, which I didn't do yet.

oowekyala reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@adangel adangel removed the is:WIP For PRs that are not fully ready, or issues that are actively being tackled label Nov 30, 2018
@oowekyala
oowekyala deleted the deprecate-regexProperty branch December 1, 2018 05:06
@oowekyala

oowekyala commented Dec 1, 2018

Copy link
Copy Markdown
Member Author

Thanks for taking care of it!

All reactions

Sorry, something went wrong.

Uh oh!

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

adangel added a commit that referenced this pull request Dec 1, 2018
@adangel
Add more tests in PropertyDescriptorTest
66315c6
Refs #1487
@adangel

adangel commented Dec 1, 2018

Copy link
Copy Markdown
Member

I've just now extended the test cases, so that we test the conversion from String via valueFrom - this is the current implementation that is used when we parse a ruleset. So having this in the tests should ensure, that we still can parse properties :)

oowekyala reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@oowekyala oowekyala added the is:deprecation The main focus is deprecating public APIs or rules, eg to make them internal, or removing them label Dec 3, 2018
@oowekyala oowekyala mentioned this pull request Dec 3, 2018
[core] Implementation plan for property framework changes #1432
Closed
36 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@adangel adangel adangel approved these changes

Uh oh!

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

Assignees

@adangel adangel

Labels

is:deprecation The main focus is deprecating public APIs or rules, eg to make them internal, or removing them

Projects

None yet

Milestone

6.10.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.