Skip to content

ignore validator

Andrew Roslik edited this page Mar 11, 2016 · 1 revision

Back

Ignore code validators

Skip Method Name Validation

To skip validation of methods name just add PHPDoc block tag @skipCommitHookMethodNaming like following:

    /**
     * My method
     *
     * @skipCommitHookMethodNaming myMethod
     */
    protected function myMethod()
    {
        //...
    }

Skip Code Block Full Validation

Also you may skip validation fully for a particular code block:

//@startSkipCommitHooks
//some bad code or code which cannot be validated properly
$a=function($b){return $b};
//@finishSkipCommitHooks

Back

  • Test 1
  • Test 2
Clone this wiki locally