~/talk

Moving Towards Better Coding Standards

Talkat PHP Yorkshire 2018 · 2018-04-13..04-14· [developer-experience, testing]
slides:none on file

A tool called Coverage Checker runs existing linters and analyzers (phpcs, phpmd, phpstan, phan, phpunit, etc.) and compares each tool’s report to the git diff so only errors in changed lines fail a build, letting teams enforce standards on new code or require a percentage (for example 80%) of changed lines to pass. It installs as a composer package or standalone, works for other languages, speeds CI (example run 277s → 26s on changed files) and cuts PSR-2 errors ~40% and average complexity from ~15 to ~12.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:28What coding standards mean
  3. 3:16Why coding standards matter
  4. 5:06Existing tools for PHP standards
  5. 8:40Legacy code challenges
  6. 12:12Solution for legacy code enforcement
  7. 14:43Generating and filtering diffs
  8. 16:51Enforcing PHPMD standards
  9. 17:56PHPUnit code coverage enforcement
  10. 19:03Results after one year
  11. 20:50Approaches to legacy cleanup
  12. 22:33Requirements for success
  13. 23:38Flexibility and pragmatism
  14. 25:42Optimizing CI performance
  15. 27:47Ordering CI jobs efficiently
  16. 28:48Simplifying Travis setup
  17. 29:53PHPUnit plugin for faster tests
  18. 31:19Beyond PHP standards
  19. 32:03Open source contribution tips
  20. 32:46Q&A session
~/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.