We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8bdb1cc + 3c7cff0 commit 7ca584bCopy full SHA for 7ca584b
.github/workflows/analyze.yml
@@ -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
@@ -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>
15
+</ruleset>
0 commit comments