From 66aa6f4712a0853d53cdb9a94123e13272c7ad7c Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Thu, 14 Sep 2023 23:19:17 +0800 Subject: [PATCH] Add a new moodle-extra coding style --- CHANGELOG.md | 4 +++ composer.json | 5 +++ moodle-extra/ruleset.xml | 76 ++++++++++++++++++++++++++++++++++++++++ moodle/ruleset.xml | 10 ------ 4 files changed, 85 insertions(+), 10 deletions(-) create mode 100644 moodle-extra/ruleset.xml diff --git a/CHANGELOG.md b/CHANGELOG.md index 7669e46..5e9e644 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt ## [Unreleased] +### Added + +- A new moodle-extra coding standard which moves towards a more PSR-12 compliant coding style + ## [v3.3.5] - 2023-08-28 ### Changed - Update composer dependencies to current versions, notably PHPCompatibility (0a17f9ed). diff --git a/composer.json b/composer.json index cfbd24a..3ec2e09 100644 --- a/composer.json +++ b/composer.json @@ -12,11 +12,16 @@ { "name": "Andrew Lyons", "email": "andrew@nicols.co.uk" + }, + { + "name": "Eloy Lafuente", + "email": "stronk7@moodle.com" } ], "require": { "dealerdirect/phpcodesniffer-composer-installer": "^1.0.0", "squizlabs/php_codesniffer": "^3.7.2", + "phpcsstandards/phpcsextra": "^1.1.0", "phpcompatibility/php-compatibility": "dev-develop#0a17f9ed" }, "config": { diff --git a/moodle-extra/ruleset.xml b/moodle-extra/ruleset.xml new file mode 100644 index 0000000..5c30e84 --- /dev/null +++ b/moodle-extra/ruleset.xml @@ -0,0 +1,76 @@ + + + + Best Practices for Moodle development beyond the core Coding Standards + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/moodle/ruleset.xml b/moodle/ruleset.xml index 58a9e80..56607af 100644 --- a/moodle/ruleset.xml +++ b/moodle/ruleset.xml @@ -68,16 +68,6 @@ - - - - - - - - - -