Skip to content

Commit bf5117a

Browse files
kogaionowczarolowczarczuk
authored
Fixing composer package due to copyright issue (#4) (#5)
* Fixing composer package due to copyright issue: magento/magento-coding-standard#451 * Adjusting package version --------- Co-authored-by: Łukasz Owczarczuk <owczar.o@gmail.com> Co-authored-by: Lukasz Owczarczuk <lowczarczuk@qoliber.com>
1 parent 8cae824 commit bf5117a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

MrmCommerceMagento2CodingStandard/ruleset.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<ruleset name="MRM Commerce Magento 2 Coding Standard" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="../../../squizlabs/php_codesniffer/phpcs.xsd">
44
<description>MRM Commerce Magento 2 Coding Standard</description>
5-
<config name="installed_paths" value="../../magento/magento-coding-standard,../../mrm-commerce/magento-coding-standard-phpcs,../../mrm-commerce/phpcs-security-audit,../../phpcompatibility/php-compatibility,../../slevomat/coding-standard"/>
5+
<config name="installed_paths" value="../../magento/magento-coding-standard,../../mrm-commerce/magento-coding-standard-phpcs,../../mrm-commerce/phpcs-security-audit,../../magento/php-compatibility-fork,../../slevomat/coding-standard"/>
66
<rule ref="../../../magento/magento-coding-standard/Magento2/ruleset.xml"/>
7-
<rule ref="../../../phpcompatibility/php-compatibility/PHPCompatibility/ruleset.xml"/>
7+
<rule ref="../../../magento/php-compatibility-fork/PHPCompatibility/ruleset.xml"/>
88
<rule ref="../../../squizlabs/php_codesniffer/src/Standards/PSR12/ruleset.xml"/>
99

1010
<!-- Running some php-related rules on .xml files can have dire consequences -->

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ committing or merging it.
2424
2. Run the following command: `composer require mrm-commerce/magento-coding-standard-phpcs --dev --with-dependencies`
2525
3. You should see the package and its dependencies being installed with the following information at the
2626
end of the output:
27-
```PHP CodeSniffer Config installed_paths set to ../../magento/magento-coding-standard,../../mrm-commerce/magento-coding-standard-phpcs,../../mrm-commerce/phpcs-security-audit,../../phpcompatibility/php-compatibility,../../slevomat/coding-standard```
27+
```PHP CodeSniffer Config installed_paths set to ../../magento/magento-coding-standard,../../mrm-commerce/magento-coding-standard-phpcs,../../mrm-commerce/phpcs-security-audit,../../magento/php-compatibility-fork,../../slevomat/coding-standard```
2828
4. If you see the `Failed to set PHP CodeSniffer installed_paths Config` error instead of the output above or you do not
2929
see any output related to phpcs at all, you can run the following commands manually from your Magento root directory:
3030
```
3131
cd vendor/squizlabs/php_codesniffer/
32-
php ./bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard,../../mrm-commerce/magento-coding-standard-phpcs,../../mrm-commerce/phpcs-security-audit,../../phpcompatibility/php-compatibility,../../slevomat/coding-standard
32+
php ./bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard,../../mrm-commerce/magento-coding-standard-phpcs,../../mrm-commerce/phpcs-security-audit,../../magento/php-compatibility-fork,../../slevomat/coding-standard
3333
```
3434

3535
## Usage

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"magento/magento-coding-standard": "*",
66
"mrm-commerce/phpcs-security-audit": "^3.0",
77
"slevomat/coding-standard": "8.1.0",
8-
"phpcompatibility/php-compatibility": "9.3.5",
8+
"magento/php-compatibility-fork": "*",
99
"dealerdirect/phpcodesniffer-composer-installer": "^0.7"
1010
},
1111
"license": [

0 commit comments

Comments
 (0)