Ignore code snippets in PHP_CodeSniffer

前端 未结 3 1571
轮回少年
轮回少年 2021-01-31 07:51

It is possible to ignore some parts of code from a php file when it\'s analyzed by PHP_CodeSniffer?

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-31 07:55

    Yes it is possible with @codingStandardsIgnoreStart and @codingStandardsIgnoreEnd annotations

    It is also described in the documentation.

提交回复
热议问题