Code standards develop over time, and old code bases often suffer with older standards as there is no easy way to migrate towards the new standards leaving them in an all or nothing state. The tools available (phpcs, phpmd phpunit, phpmnd etc) all work on the whole code base and while some offer auto fixers for the code, larger (and older) code bases have too many issues which can not be auto fixed.

Coverage Checker allows these tools to work alongside the tools mentioned above to ensure that all new code checked in conforms to these standards optionally also allowing a percentage of new code which must conform in order to ease the transition for example 80% of the new code must be covered by tests.

New tools such as phan and phpstan are also very noisy which means you need to have a high level of quality before starting to use them, This tool allows an easy way to start benefiting from these tools! This is really easy to set up and all code bases can benefit.

This also works for tools in other languages such as pylint, jacoco and more

Comments

Comments are closed.

Thank you for your talk, there was a lot of valuable content. You were clearly nervous to begin with but once you relaxed you spoke well. The Q&A was particularly good.

Rated 4

Richard Lane at 20:33 on 14 Apr 2018

High intensity but very useful - lots of tools being thrown out thick and fast - some of the slides were over before I would work out what I needed to make notes about. If I could make one suggestion: don't assume so much of your audience. You didn't explain what "CI server" meant (and because you'd mentioned CodeIgniter earlier I spent some time thinking you were referring to that at first), ditto Travis and yml.

This was packed with super useful knowledge!
Might be a bit fast for the amount of knowledge but great talk!

Rated 5

Iain Fogg at 21:38 on 14 Apr 2018

Really enjoyed this session. Way more info than I could write down, but with the slides available, I can take the time to think through all the details to figure out what we can implement.

I enjoyed Scott's style presenting, and look forward to experiment with the tool he's written to help with applying standards just to changed code.

Rated 5

Phil at 23:39 on 14 Apr 2018

Well prepared demo full of useful, no BS facts. Thanks.

Rated 5

Richard H at 23:46 on 14 Apr 2018

Great talk! Good to hear how you can manage coding standards in legacy code bases without doing a major refactor!

Rated 5

Pim Elshoff at 11:35 on 15 Apr 2018

This had everything. Personal experience combined with theory and call to action. Don't change a thing, Scott.

Hands down the most interesting talk of the day for me. But it was impossible to take notes and keep up with the pace of the presentation. Thank goodness the slides are available for post-conference digestion.

All you need to do is turn the dial back from 11...

Lots of useful tools listed to help improve your code over time and a very piratical way to do it in the context of a real world example of how you are achieving this with your team.

Lets not forget some cracking jokes and some trivia about WordPress. Good times.