Skip to content

Commit bef2d2b

Browse files
authored
Merge pull request #106 from aligent/feature/phpcs-with-annotations
Feature/phpcs with annotations
2 parents 4c7e642 + c551a73 commit bef2d2b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/php.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@ jobs:
3838
run: composer run-script test
3939

4040
- name: Run linter to check code style
41-
run: composer run-script check-style
41+
uses: chekalsky/phpcs-action@v1
42+
with:
43+
enable_warnings: true

.phpcs.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer" xsi:noNamespaceSchemaLocation="phpcs.xsd">
3+
<description>Coding standard configuration for the Bigcommerce V3 API Client.</description>
4+
5+
<file>src</file>
6+
<file>tests</file>
7+
8+
<rule ref="PSR12"/>
9+
</ruleset>

0 commit comments

Comments
 (0)