-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
APPS-4764 Use default phpcs.xml for the codesniffer tasks. (#169)
* APPS-4764 Use default phpcs.xml, removed allowing to pass a config path for the Code Sniffer. * APPS-4764: Fixed tests. * APPS-4764: Changed default value for code sniffer and fixer tasks. * APPS-4764: Changed default value for code sniffer and fixer tasks. * APPS-4764: Provided\updated help messages for the command that are using code sniffer. * APPS-4769: Moved phpcs options to the ruleset.xml config file and adjusted development and production environments. * APPS-4769: Renamed ruleset.xml to phpcs.xml for automatic usage by default. * APPS-4769: phpcs.xml path fixes and docker stuff updates. * APPS-4769: Fixed typo. * APPS-4769: Changed help messages for the sniffer related tasks and skipped related tests. * APPS-4769: Fixed tests. * APPS-4769: Fixed tests. * APPS-4769: Fixed Eslint tests. Co-authored-by: pavlo.maksymov <[email protected]>
- Loading branch information
1 parent
0832d3f
commit ab78cb8
Showing
8 changed files
with
49 additions
and
26 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
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
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,25 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Sdk"> | ||
<description> | ||
Spryker Coding Standard for Project. | ||
|
||
Extends main Spryker Coding Standard. | ||
All sniffs in ./Sniffs will be auto loaded | ||
</description> | ||
|
||
<rule ref="vendor/spryker/code-sniffer/Spryker/ruleset.xml"/> | ||
|
||
<file>src/</file> | ||
<file>tests/</file> | ||
<file>extension/</file> | ||
|
||
<exclude-pattern>/tests/_project/*</exclude-pattern> | ||
<exclude-pattern>/tests/_output/*</exclude-pattern> | ||
<exclude-pattern>/tests/_support/_generated/*</exclude-pattern> | ||
<exclude-pattern>/tests/_support/data/*</exclude-pattern> | ||
|
||
<arg name="extensions" value="php" /> | ||
<arg name="colors"/> | ||
<arg value="sp"/> | ||
|
||
</ruleset> |
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
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
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
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
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,11 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="SdkTest"> | ||
<description> | ||
Spryker Coding Standard Stub for the acceptance tests. | ||
|
||
Extends main Spryker Coding Standard. | ||
</description> | ||
|
||
<rule ref="../../../vendor/spryker/code-sniffer/Spryker/ruleset.xml"/> | ||
|
||
</ruleset> |