andrewnicols/moodle-cs-strict

The Moodle coding standard with added standards to make it stricter

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:phpcodesniffer-standard

v0.1.1 2022-12-20 01:30 UTC

This package is auto-updated.

Last update: 2024-12-20 07:12:28 UTC


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

  1. Create a new .phpcs.xml file in your repository with the content:
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="MoodleCore">
  <rule ref="./phpcs.xml"/>
  <rule ref="MoodleStrict"/>
</ruleset>