Skip to content

Feature suggestion: sniff to discourage/forbid use of goto language construct #1662

@jrfnl

Description

@jrfnl

Usage of goto is often seen as a typical code smell.

AFAICS there is currently no sniff to detect usage of goto and discourage/forbid it.

Is there any interest for a Generic.PHP.DiscourageGoto sniff to detect this ? I'd be happy to create a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions