From 3b33063a7e24d78cc1453be2af45db8b6353b75d Mon Sep 17 00:00:00 2001 From: Ajay A <33749143+ajaycalicut17@users.noreply.github.com> Date: Wed, 1 Jan 2025 18:56:46 +0530 Subject: [PATCH] Create ruleset.xml (#50) * Create ruleset.xml * Rename ruleset.xml to phpmd-ruleset.xml * Update phpmd.yml * Update phpmd.yml * Update phpmd.yml --- .github/workflows/phpmd.yml | 4 +--- phpmd-ruleset.xml | 10 ++++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 phpmd-ruleset.xml diff --git a/.github/workflows/phpmd.yml b/.github/workflows/phpmd.yml index 6c757a3..45fb593 100644 --- a/.github/workflows/phpmd.yml +++ b/.github/workflows/phpmd.yml @@ -21,8 +21,6 @@ on: pull_request: # The branches below must be a subset of the branches above branches: [ "main" ] - schedule: - - cron: '42 8 * * 5' permissions: contents: read @@ -47,7 +45,7 @@ jobs: tools: phpmd - name: Run PHPMD - run: phpmd . sarif cleancode,codesize,controversial,design,naming,unusedcode --reportfile phpmd-results.sarif + run: phpmd . sarif phpmd-ruleset.xml --reportfile phpmd-results.sarif continue-on-error: true - name: Upload analysis results to GitHub diff --git a/phpmd-ruleset.xml b/phpmd-ruleset.xml new file mode 100644 index 0000000..6cfd3f2 --- /dev/null +++ b/phpmd-ruleset.xml @@ -0,0 +1,10 @@ + + + +