From aaf5454b3aa6c5e09843470bb3ca41f9a0dafd98 Mon Sep 17 00:00:00 2001 From: Maximilian Haye Date: Mon, 29 Jul 2024 17:59:50 +0200 Subject: [PATCH] ci: add phpcs.xml and use in CI --- .github/workflows/moodle-ci.yml | 2 +- phpcs.xml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 phpcs.xml diff --git a/.github/workflows/moodle-ci.yml b/.github/workflows/moodle-ci.yml index 420e662c..45e6d99d 100644 --- a/.github/workflows/moodle-ci.yml +++ b/.github/workflows/moodle-ci.yml @@ -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() }} diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 00000000..baada942 --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,7 @@ + + + + + + +