• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)
You are here: Home / Archives for PHPCS

PHPCS

phpcs no matches found ignore

Last updated on March 13, 2023 by Sal Ferrarello

When running phpcs with the –ignore option (because I don’t want to scan the /vendor nor /node_modules directories), I kept getting the error “zsh: no matches found: –ignore=/vendor/*,/node_modules/*”.

Filed Under: Computing, Dev Tips, Programming, Solution Tagged With: PHPCS, zsh

phpcs display sniff name

Last updated on October 20, 2022 by Sal Ferrarello

By default phpcs does NOT display the relevant name of the sniff when a sniff fails. By adding the ‘-s’ argument, the sniff names will be displayed. See the following from ‘phpcs –help’. Alternatively, this can be added to your PHP CodeSniffer XML Ruleset.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Programming, Solution Tagged With: PHP, PHPCS

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in