aquifer / aquifer-coder

Coding standards sniffing and linting utility.
GNU General Public License v2.0
1 stars 2 forks source link

aquifer-coder

Coding standards sniffing and linting utility for Aquifer projects.

Installation

To install this extension, in your Aquifer project, run:

aquifer extension-add aquifer-coder

Use

This extension adds a few commands to the Aquifer CLI within your project:

Running any of these commands will create a report that outlines any coding standards violations or linting errors in your codebase. A default set of eslint rules is provided, and the Drupal Coding Standards PHPCodesniffer rules are used.

Configuration

You might not want to use the eslint rules provided with this extension, or the Drupal Coding Standards. This extension provides two optional parameters:

in your aquifer.json file:

...
"extensions": {
  "aquifer-coder": {
    "source": "aquifer-coder",
    "eslintrc": "relative/path/to/.eslintrc",
    "eslintIgnore": "relative/path/to/.eslintignore"
    "phpcsStandard": "relative/path/to/phpcsStandardFile"
  }
}
...