Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHP_CodeSniffer: Ask Me Anything (intro)

PHP_CodeSniffer: Ask Me Anything (intro)

Intro as presented on February 8th 2024 at 010PHP, Rotterdam, The Netherlands.
https://www.meetup.com/010php/events/298657250/
---------------------------------------------------------------
Now most of you will have heard of PHP_CodeSniffer as a tool to check your code for consistent code style and common best practices. But are you really getting the most out of it ?

In this interactive session, you can ask Juliette anything you like about PHP_CodeSniffer and she will answer your questions via live demo!

Want to know how to avoid running PHPCS over the whole project via a pre-commit hook when you've changed only a few files ? ask it!
Want to find a sniff for a particular code pattern you want to enforce ? Let's investigate!
Or maybe you are more interested in hearing about some common best practices for setting up a custom ruleset ?

Start thinking of your questions now and be prepared to turn on your mic and speak up!

Juliette Reinders Folmer

February 08, 2024
Tweet

More Decks by Juliette Reinders Folmer

Other Decks in Programming

Transcript

  1. Static Analysis ▪ Tokenizes ▪ Per file ▪ Light weight

    Dynamic Analysis ▪ Parses ▪ Across files
  2. Psalm CS- Fixer PHP Stan PHP CS Exakat PHP CPD

    PHP Insights PHP MD Phan Rector PHP DCD Static Analysis Tools PHP MND
  3. Functional Standards and Sniff Collections Object Calisthenics Variable Analysis Universal

    Slevomat Cognitive Complexity PHP Compatibility Import Detection Security Audit Normalized Arrays PHPCSExtra Modernize