dongzha5934 2009-12-09 07:23
浏览 55
已采纳

PHP codesniffer - 如何教它忽略空格?

I am using PHP CodeSniffer to check if my code complies to Zend standards. 80 chars per line is one of them. But I prefer to indent line with white spaces and sniffer treat short lines with line indentations as long lines.

Is there a way to teach it to ignore whitespace identations? Or it makes sense and the farther my line is indented, the shorter it should be?

  • 写回答

3条回答 默认 最新

  • dongyi5070 2009-12-09 07:34
    关注

    Actually this makes perfect sense to keep a line to 80 characters, no matter how many indentations you have.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部