Skip to content

UselessIfConditionWithReturn will remove comments #1040

@gmponos

Description

@gmponos

Hi..

Can you check this: https://github.com/doctrine/coding-standard/pull/208/files#diff-b67fca0df7d43e41d2ac5ceeb7ae7679R30

I think it's the SlevomatCodingStandard.ControlStructures.UselessIfConditionWithReturn

It removes the comment and also makes it a short return. I believe the rule should be either configurable or just report errors in these cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions