Ignore code snippets in PHP_CodeSniffer

前端 未结 3 1534
轮回少年
轮回少年 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:58

    You can either use the combination: @codingStandardsIgnoreStart and @codingStandardsIgnoreEnd or you can use @codingStandardsIgnoreLine.

    Example:

提交回复
热议问题