Skip to content

[Feature] Add annotation @noRector to AnnotationReader #385

@Aerendir

Description

@Aerendir

I'm using Rector to automatically refact my code..

It uses the annotation @noRector to ignore specific lines (ref.: https://github.com/rectorphp/rector/blob/master/docs/how_to_ignore_rule_or_paths.md#in-a-file).

But the annotation @noRector is not read by Doctrine Annotations and I get the following error:

In FileLoader.php line 173:

[Semantical Error] The annotation "@noRector" in method App\Entity\MyEntity::getUploadedOn() was never imported. Did you maybe forget to add a "use" statement for this annotation? in . (which is being imported from "/Users/Aerendir/Doc
uments/path/to/my/app/config/routes/api_platform.yaml"). Make sure there is a loader supporting the "api_platform" type.

In AnnotationException.php line 39:

[Semantical Error] The annotation "@noRector" in method App\Entity\MyEntity::getUploadedOn() was never imported. Did you maybe forget to add a "use" statement for this annotation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions