Say goodbye to bugs and anti-patterns with Error Prone
summary
Error Prone runs as a compiler plugin that not only detects but rewrites Java issues using a patch mode so fixes apply in-place, and refaster templates let teams express before/after refactors. Picnic open-sources an Error Prone Support repo with ~900 refaser rules and ~40 bug checks, applied across ~70 repositories. A single check once changed ~800 files and ~4,000 lines. Setup uses two Maven profiles plus a patch script and CI flags so violations fail the build, letting teams enable checks incrementally and review small, predictable refactor PRs.
AI-written summary · about
chapters (15)
- 0:00Introduction and frustration
- 1:09Code quality processes at Picnic
- 5:05Tools to minimize discussions
- 6:08What is Error Prone
- 8:15Reaster for simple refactorings
- 10:21Maven profiles setup
- 12:27Demo and quiz
- 17:35Highlighted Error Prone checks
- 21:29Introducing Error Prone in practice
- 23:56Enabling one bug pattern
- 27:07Lessons learned at Picnic
- 35:59Applying refaster rules
- 40:13Incentivizing contributions
- 41:38Live refaster rule demo
- 45:40Conclusion and next steps
