-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from bobbrodie/5.0.x
Add PHPCS
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |