backdrop-contrib / backdrop-drush-extension

A set of commands and boot class for Drush and Backdrop CMS.
GNU General Public License v2.0
14 stars 18 forks source link

Add phpcs code checks. #166

Closed serundeputy closed 5 years ago

drupol commented 5 years ago

Hi,

You could also try package that does almost everything for you: https://packagist.org/packages/drupol/backdrop-conventions

drupol commented 5 years ago

Here's the log, I had to disable PHPCS (_see grumphp.yml.dist, section skiptasks) because the version you're using in backdrop/coder is too old.

If you want to reproduce this on your local, ensure the following files exists and contains:

composer.json:

{
    "name": "backdrop/drush",
    "description": "This project allows you to use Drush with Backdrop CMS. Drush is a command-line tool for manipulating content management systems.",
    "license": "GPL-2.0+",
    "authors": [
        {
            "name": "Nate Lampton",
            "email": "nate@quicksketch.org"
        },
        {
            "name": "Geoff St. Pierre",
            "email": "serundeputy@gmail.com"
        }
    ],
    "require-dev": {
        "drupol/backdrop-conventions": "^0.1.4"
    }
}

grumphp.yml.dist (create it at the root of the project):

imports:
  - { resource: vendor/drupol/backdrop-conventions/config/backdrop/grumphp.yml }

parameters:
  extensions:
    - drupol\BackdropConventions\GrumphpTasksExtension
  skip_tasks:
    - phpcs