File: HACKING

package info (click to toggle)
tweeper 1.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 188 kB
  • sloc: php: 419; sh: 53; makefile: 29
file content (17 lines) | stat: -rw-r--r-- 646 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
The code follows the Drupal coding standards:
https://www.drupal.org/coding-standards

Style compliance can be checked using the Coder Sniffer extension to the PEAR
PHP_CodeSniffer project, for instructions about how to install Coder Sniffer
see https://www.drupal.org/node/1419988

TL;DR: install drupla/coder and enable the Drupal coding standard in
PHP_CodeSniffer:
  
  $ composer global require drupal/coder
  $ export PATH="$HOME/.config/composer/vendor/bin:$PATH"
  $ phpcs --config-set installed_paths $HOME/.config/composer/vendor/drupal/coder/coder_sniffer/

And then use this command to check the style:

  $ phpcs --standard=Drupal .