Problem/Motivation

Using IDE plugins like https://atom.io/packages/linter-phpcs allow you to lint your code while you are editing the file. However, since plugins like these can only use a single coding standard, you can't use Drupal and DrupalPractice at the same time.

Proposed resolution

Create a single standard that includes both Drupal and DrupalPractice

Comments

davidwbarratt’s picture

Issue summary: View changes
davidwbarratt’s picture

Issue summary: View changes
klausi’s picture

Category: Feature request » Support request
Status: Active » Fixed

You can do that now by creating a custom phpcs.xml file in your project. See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#using-a...

Just specify both standards in your phpcs.xml file and both will be checked when you run phpcs/phpcbf.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.