Skip to content

Missing case for Rails/EnvLocal #1478

@bquorning

Description

@bquorning

The Rails/EnvLocal cop will detect cases like

Rails.env.development? || Rails.env.test?

and

Rails.env.development? || Rails.env.test? || foo?

but it will currently not detect this case:

foo? || Rails.env.development? || Rails.env.test?

Would it be possible to change the cop to catch such a case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions