Skip to content

Find repeatedly occurring boolean expressions on a class and suggest a method for it #688

@Luro02

Description

@Luro02

What it does

For example, when someone does

a.isValid() && a.isTrue()

in multiple locations in the code,
it might be sensible to create a method on the class of a that combines these two conditions;

a.isValidAndTrue();

Lint Name

No response

Category

No response

Example

<code>

Could be written as:

<code>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions