문제

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?

도움이 되었습니까?

해결책

I doubt you would use CS for that as its not code. Look at pre-commit hooks if you are using git.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top