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

Enforcing Code Quality with GrumPHP @ MeetMagen...

Enforcing Code Quality with GrumPHP @ MeetMagento NL 05/17

Sick and tired of defending code quality over and over again? GrumPHP will do it for you! During this session, you will learn how a simple tool can keep your codebase clean. GrumPHP will not only improve your codebase, but will also teach your co-workers to write better code following the best practices you've determined as a team.

Toon Verwerft

May 10, 2017
Tweet

More Decks by Toon Verwerft

Other Decks in Programming

Transcript

  1. 1. I  LOOK  FOR BAD  CODE 2. I  PROTECT YOUR

     CODEBASE 3. I  COMPLAIN FOR  YOU
  2. PHP-­‐CS PHP-­‐CS-­‐Fixer BLACKLIST COMMITMSG PHP-­‐MD PHP-­‐CPD PHP-­‐DCD HUMBUG PHING ANT

    PHP-­‐PARSER JSON-­‐LINT XML-­‐LINT YAML-­‐LINT ATOUM BRUNCH CLOVER GHERKIN GITCONFLICT PHP-­‐VERSION SHELL SECURITY-­‐CHECKER
  3. /** *  Interface  TaskInterface * *  @package  GrumPHP\Task */ interface

     TaskInterface { public  function  getName(); public  function  getConfiguration(); public  function  getConfigurableOptions(); public  function  canRunInContext(ContextInterface $context); public  function  run(ContextInterface $context); }
  4. /** *  Interface  ExtensionInterface * *  @package  GrumPHP\Extension */ interface

     ExtensionInterface { public  function  load(ContainerBuilder $container); }