Skip to content

Commit

Permalink
Merge pull request #87 from bobbrodie/5.0.x
Browse files Browse the repository at this point in the history
Add PHPCS
  • Loading branch information
p-maguire authored Jun 19, 2024
2 parents 8bdb1cc + 3c7cff0 commit 7ca584b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Analyze

on: [push, pull_request]

jobs:
phpcs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- name: PHP_CodeSniffer
run: |
curl -OL https://phars.phpcodesniffer.com/phpcs.phar
php phpcs.phar modules
15 changes: 15 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<ruleset name="WHMCS">

<description>
This ruleset enforces the PSR1 and PSR2 coding standards. See
https://developers.whmcs.com/modules/style-guide/ for more information.
</description>

<rule ref="PSR1"/>
<rule ref="PSR2"/>

<file>modules/</file>
<exclude-pattern>*/vendor/*</exclude-pattern>

</ruleset>

0 comments on commit 7ca584b

Please sign in to comment.