Skip to content

Commit 313ba69

Browse files
Update codesniffer package to work with Modern Totara
1 parent beb74db commit 313ba69

13 files changed

Lines changed: 356 additions & 68 deletions

File tree

.idea/.gitignore

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/code-sniffer.iml

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/copilot.data.migration.ask2agent.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/laravel-idea.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php.xml

Lines changed: 69 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/phpunit.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This project contains a Code Sniffer Standard for Totara Learn.
44

55
## Prerequisites
66

7-
* PHP 7.4 or higher
7+
* PHP 7.4 or higher (including PHP 8.4 and 8.5)
88
* Composer (https://getcomposer.org/)
99

1010
***
@@ -118,8 +118,8 @@ The Totara standard does include the PHPCompatibility standard as well to check
118118
By default the PHPCompatibility rules will check only the PHP version you are running the phpcs command on. To choose a specific version to check either set the version on the console
119119

120120
```
121-
# to run all the checks for PHP 7.1, PHP 7.2 and PHP 7.3
122-
/path/to/phpcs --runtime-set testVersion 7.1-7.3 ...
121+
# to run all the checks for PHP 8.4 and PHP 8.5
122+
/path/to/phpcs --runtime-set testVersion 8.4-8.5 ...
123123
```
124124
or have a "testVersion" configuration option in your phpcs.xml file.
125125

@@ -151,4 +151,4 @@ vendor/bin/phpunit
151151

152152
There is also a pre-commit hook for git to run Code Sniffer on commit.
153153

154-
Check out the [instructions](git-hook) on how to use it.
154+
Check out the [instructions](git-hook) on how to use it.

0 commit comments

Comments
 (0)