Skip to content

Fail when debug functions are committed. #28

@rupertj

Description

@rupertj

There was an issue on localgov_openreferral recently, caused by xdebug_break() being in some committed code. (See localgovdrupal/localgov_openreferral#70).

We could add a check for this and other debug functions using phpcs, like this: https://matthewdaly.co.uk/blog/2017/11/06/catching-debug-statements-in-php/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions