Skip to content

Scan the generated sources but not apply change #968

Open
@addozhang

Description

@addozhang

What problem are you trying to solve?

Here we have projects that use OAS to define API and generate codes. These generated codes locate at target/generated-sources.

During recipes running, these generated codes will be referred by others sources or used in scanning phase.

Describe the solution you'd like

Scan the generated sources but not apply changes to these generated ones.

Have you considered any alternatives or workarounds?

We may can involve a new Marker like Immutable, and add Marker to generated sources.

During changes apply, skip the sources with this Marker.

Additional context

Are you interested in contributing this feature to OpenRewrite?

Yes, if the feature accepted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions