moodlerooms/moodle-coding-standard

This package is abandoned and no longer maintained. The author suggests using the blackboard-open-source/moodle-coding-standard package instead.

Moodle CodeSniffer Standards

2.0.3 2016-10-06 15:43 UTC

This package is not auto-updated.

Last update: 2019-02-20 19:29:50 UTC


README

This project is simply a way to package up and distribute the Moodle Coding Standard which is defined in the following project: moodle-local_codechecker

This project does not attempt to do anything else. If there are problems with the standard, then the problems should be addressed in the moodle-local_codechecker project. Once the problem is fixed, it can be synced from moodle-local_codechecker into this project.

Latest Stable Version Total Downloads License

Install

Just add it to your project's composer.json file (--dev is optional based on your needs):

composer require --dev blackboard-open-source/moodle-coding-standard

Usage

The following paths may change based on how things are installed, but basically you are looking for the path to the CodeSniffer command and the path to the moodle directory of this project:

vendor/bin/phpcs --standard=vendor/blackboard-open-source/moodle-coding-standard/moodle /path/to/moodle/plugin

Credits

All praise should go to the contributors of moodle-local_codechecker.

License

This project is licensed under the GNU GPL v3 or later. See the LICENSE file for details.