5

I want to see only error in codesniffer. Because file have too many warning and i have only correct the errors. Can any know how to to do that?

Qaisar Satti
  • 2,742
  • 2
  • 18
  • 36

2 Answers2

8

Thanks @GregSherwood following this link

phpcs -n --standard=MEQP1 pathtofile
Qaisar Satti
  • 2,742
  • 2
  • 18
  • 36
0

Another possible solution would be.

phpcs -n --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md pathtofile

Replace pathtofile with the file or directory of your own.

Naser Nikzad
  • 713
  • 12
  • 27