Skip to content

Commit 7ca584b

Browse files
authored
Merge pull request #87 from bobbrodie/5.0.x
Add PHPCS
2 parents 8bdb1cc + 3c7cff0 commit 7ca584b

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/analyze.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Analyze
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
phpcs:
7+
runs-on: ubuntu-22.04
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: PHP_CodeSniffer
12+
run: |
13+
curl -OL https://phars.phpcodesniffer.com/phpcs.phar
14+
php phpcs.phar modules

phpcs.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="WHMCS">
3+
4+
<description>
5+
This ruleset enforces the PSR1 and PSR2 coding standards. See
6+
https://developers.whmcs.com/modules/style-guide/ for more information.
7+
</description>
8+
9+
<rule ref="PSR1"/>
10+
<rule ref="PSR2"/>
11+
12+
<file>modules/</file>
13+
<exclude-pattern>*/vendor/*</exclude-pattern>
14+
15+
</ruleset>

0 commit comments

Comments
 (0)