1.0.7 • Published 8 years ago

aquifer-coder v1.0.7

Weekly downloads
2
License
GPL-2.0
Repository
github
Last release
8 years ago

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:

  • aquifer lint - Lints all code files in all directories containing custom code.
  • aquifer jslint - Lints JavaScript code files in all directories containing custom code.
  • aquifer phplint - Lints PHP code files in all directories containing custom code.

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"
  }
}
...
1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago