andrewnicols/moodle-cs-strict
The Moodle coding standard with added standards to make it stricter
Maintainers
Package info
github.com/andrewnicols/moodle-cs-strict
Type:phpcodesniffer-standard
pkg:composer/andrewnicols/moodle-cs-strict
v0.1.1
2022-12-20 01:30 UTC
Requires
Requires (Dev)
Suggests
None
Provides
None
Conflicts
None
Replaces
None
GPL-2.0-or-later c6336662e1f1f095a164dfafd1bcd29aaeb401de
README
This is an extended version of the Moodle Coding style with added opinionated best practices.
Installation
Via Composer
composer global require andrewnicols/moodle-cs-strict
Configuration
Note: This configuration depends on MDL-76272 having landed
- Create a new
.phpcs.xmlfile in your repository with the content:
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="MoodleCore">
<rule ref="./phpcs.xml"/>
<rule ref="MoodleStrict"/>
</ruleset>
