Closed GaryJones closed 6 years ago
As a whole, at the moment, i'm pretty sure our composer usage is subpar at best, and I want/need to get more familiar with the topic as a whole before I start committing too much here.
I'm happy to do a first pass PR for adding these checks in. The config can then be adjusted to suit, and then steps taken to fix any CS violations.
Currently
There doesn't appear to be any code standards checks (just some for documentation).
Issue
While not critical to the plugin behaviour, it can make maintenance easier if others contribute.
Suggestion
By adding something like the above packages to
require-dev
incomposer.json
, coding standards can be checked. You'd then need a customisedphpcs.xml.dist
(like this one) that is specific to this plugin.What is the minimum version of PHP that is tested for? If the main plugin file is PHP 5.2, but the rest of the plugin is later, then you can still test compatibility by using something like this composer script to run phpcs.
Running these checks can then be included in the
.travis.yml
file as well.