Skip to content

[core] Deprecate AbstractRule#asCtx #4814

@adangel

Description

@adangel

This method was added only as a temporary, transitional solution. The main fix was not finished for 7.0.0 yet, but with 7.x, we should finish it:

  • Provide the RuleContext directly via the typed visitors - no more Object and casting
  • This affects all rules in all languages
  • We should make sure, that the docs (extending PMD with a new language javacc/antlr) are suggesting a correctly typed visitor

Related issues:

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions