1

I am using the CakePHP framework, and would like to have PHP_CodeSniffer warn against image files that developers might in a haste, paste into the app/webroot/css folder while copying in something, as opposed to moving them into an appropriate folder in app/webroot/img.

Is this a bad idea? If not, how do I write a custom sniff to do this?

4

1 回答 1

2

我怀疑你会使用 CS 作为它的不是代码。如果您使用 git,请查看预提交挂钩。

于 2013-05-23T13:42:38.103 回答