Skip to content

[core] Deprecate parser options#2675

Merged
adangel merged 6 commits into
pmd:masterfrom
oowekyala:deprecate-parser-options
Aug 2, 2020
Merged

[core] Deprecate parser options#2675
adangel merged 6 commits into
pmd:masterfrom
oowekyala:deprecate-parser-options

Conversation

@oowekyala

Copy link
Copy Markdown
Member

Describe the PR

$title

Related issues

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)

There is no way to introduce the new API
in a binary compatible change, so LVHandler::getDefaultParserOptions,
LVHandler::getParser and Parser::parse
will remain like this until 7.0 and be
broken.
Someone may be using those properties, this would
be a breaking change
@oowekyala oowekyala added the is:deprecation The main focus is deprecating public APIs or rules, eg to make them internal, or removing them label Jul 28, 2020
@oowekyala oowekyala added this to the 6.27.0 milestone Jul 28, 2020
@ghost

ghost commented Jul 28, 2020

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

Generated by 🚫 Danger

@adangel adangel self-assigned this Aug 2, 2020

@adangel adangel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You comment about using different language versions instead of parser options might be the way to go.
Keeping parser options, means, we would produce different ASTs for the same language version, which is probably not good.

I'll merge this for 6.27.0

Comment thread docs/pages/release_notes.md
adangel added a commit that referenced this pull request Aug 2, 2020
[core] Deprecate parser options #2675
@adangel adangel merged commit 0609aac into pmd:master Aug 2, 2020
@oowekyala oowekyala deleted the deprecate-parser-options branch August 2, 2020 16:07
@oowekyala oowekyala mentioned this pull request Aug 20, 2020
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants