Skip to content

Commit

Permalink
ci: add phpcs.xml and use in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MHajoha committed Jul 30, 2024
1 parent d17abee commit aaf5454
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:

- name: Moodle Code Checker
if: ${{ !cancelled() }}
run: moodle-plugin-ci phpcs --standard moodle-extra --exclude moodle.Commenting.TodoComment,Squiz.Functions.MultiLineFunctionDeclaration --max-warnings 0
run: moodle-plugin-ci phpcs --standard ./phpcs.xml --max-warnings 0

- name: Moodle PHPDoc Checker
if: ${{ !cancelled() }}
Expand Down
7 changes: 7 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="QuestionPy">
<rule ref="moodle-extra">
<exclude name="moodle.Commenting.TodoComment"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration"/>
</rule>
</ruleset>

0 comments on commit aaf5454

Please sign in to comment.