~/talk

Introducing PHP_CodeSniffer into an Existing Codebase to Make Life Easier!

TalkinJapaneseat PHP Conference Japan 2023 · on Sunday, 2023-10-08· [developer-experience, php]
links:none on file
slides:none on file

Describes adding PHP_CodeSniffer to a 16-year-old PHP codebase to reduce code review work by automating style checks. They created a PSR12-based XML ruleset extended with third-party checks and several custom sniffs, packaged as an internal composer package. To avoid CI noise from legacy violations, they implemented a three-run CI script that detects and enforces only newly introduced errors (including special handling for paired type-hint error codes).

AI-written summary · about

  1. 0:00Introduction
  2. 2:08What is PHP_CodeSniffer
  3. 5:40Why we introduced it
  4. 7:05Technical barriers
  5. 9:31Custom rule sets
  6. 13:08Creating custom rules
  7. 16:45Packaging and deployment
  8. 17:29Fixing existing violations
  9. 22:31Summary
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.