Specify comma-separated file extensions to include when sniffing

phpcs

  • Tokenize PHP, JavaScript and CSS files to detect violations of a defined set of coding standards.
    More information: <https://github.com/squizlabs/PHP_CodeSniffer>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

phpcs {{path/to/directory}} --extensions {{file_extension(s)}}

click the source code to copy install phpcs on any operating system with command-not-found.com