最近项目加上了校验规则,你懂的 phpcs 安装 phpcs pear install PHP_CodeSniffer 使用 phpcs --config-set encoding=utf-8 phpcs --config-set tab_width=4 phpcs --config-set show_warings=0 phpcs --config-show Array ( [encoding] = utf-8 [tab_width]
最近项目加上了校验规则,你懂的
phpcs
安装 phpcs
pear install PHP_CodeSniffer
使用
phpcs --config-set encoding=utf-8 phpcs --config-set tab_width=4 phpcs --config-set show_warings=0 phpcs --config-show Array ( [encoding] => utf-8 [tab_width] => 4 [show_warnings] => 0 ) phpcs -s *.php
由于项目中校验了 Doc comment,file comment ,我使用了
DoxygenToolkit.vim
插件做function comment,但是对于 file comment,doc comment 来说DoxygenToolkit 并不满足我的项目
于是我花了一点时间用 python 写了一个小的 vim 插件,专门添加符合我需求的注释,
commentvim.vim git hub 地址 : https://github.com/childeYin/vim-comment-plugin
原文地址:PHP_CodeSniffer 格式校验规则, 感谢原作者分享。

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

Video Face Swap
使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热门文章

热工具

EditPlus 中文破解版
体积小,语法高亮,不支持代码提示功能

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

Dreamweaver Mac版
视觉化网页开发工具

MinGW - 适用于 Windows 的极简 GNU
这个项目正在迁移到osdn.net/projects/mingw的过程中,你可以继续在那里关注我们。MinGW:GNU编译器集合(GCC)的本地Windows移植版本,可自由分发的导入库和用于构建本地Windows应用程序的头文件;包括对MSVC运行时的扩展,以支持C99功能。MinGW的所有软件都可以在64位Windows平台上运行。