I want to learn how to code PHP according to the standard. I found this article and (on her advice) installed phpcs in exalted text 2. If I go to tools -> phpcode sniffers -> sniff this file, it will find syntax errors, but it does not code standard deviations. (Here is the code I'm trying to smell, which I think has a lot of deviations from the standard https://codereview.stackexchange.com/questions/57045/simple-wrapper-for-an-api ).
docs say to configure phpcs to use the coding standard through phpcs_additional_args. If I go to sublimetext2-> preferences-> package-> phpcode sniffer-> settings, I see the following code:
"phpcs_additional_args": {
"--standard": "PSR2",
"-n": ""
},
Here is my complete configuration file .
Do I have a workflow? If so, why doesn't he find my mistakes? How to use phpcs to teach coding standards? Even knowing that I am taking the right steps, but the plugin does not display standard coding labels, it would be useful.
source
share