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?
Any way to show only error on codesniffer
Asked Answered
Thanks @GregSherwood following this link
phpcs -n --standard=MEQP1 pathtofile
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.
© 2022 - 2024 — McMap. All rights reserved.
CodeSniffer.conf
, isshow_warnings
set to0
? – Concubinage<?php $phpCodeSnifferConfig = array ( 'default_standard' => 'MEQP1', 'report_format' => 'summary', 'show_warnings' => '0', 'show_progress' => '1', 'report_width' => '120', ) ?>
– Sharlenesharline