magento-coding-standard
magento-coding-standard copied to clipboard
Magento Coding Standard
This is a small part of https://github.com/magento/magento-coding-standard/pull/347 as suggested in https://github.com/magento/magento-coding-standard/pull/347#issuecomment-999512251. https://eslint.org/docs/rules/indent
This is a small part of https://github.com/magento/magento-coding-standard/pull/347 as suggested in https://github.com/magento/magento-coding-standard/pull/347#issuecomment-999512251. https://eslint.org/docs/rules/quotes This is a minor change to the existing rule to allow the use of double quotes where it's...
This is a small part of https://github.com/magento/magento-coding-standard/pull/347 as suggested in https://github.com/magento/magento-coding-standard/pull/347#issuecomment-999512251. https://eslint.org/docs/rules/keyword-spacing
This has been copied from https://github.com/magento/magento2/pull/32343 This fixes https://github.com/magento/magento2/issues/32375 The ESLint configuration currently in use was last updated four years ago. A lot has changed in the JavaScript since then....
Can we please find and have elaboration on this statement in the readme: "Due to security, when installed this way the Magento standard for phpcs cannot be added automatically" This...
### Preconditions 1. a class that uses **property** (not method) `_redirect` or `loadLayout` 2. magento-coding-standard v16 ### Steps to reproduce 1. a class that uses **properties** (not methods) that are...
### Preconditions 1. php 7.4.22 2. Use v14 ### Steps to reproduce 1. create some class with function that call `ObjectManager::setInstance($defaultObjectManager);` 2. ### Expected result 1. No errors ### Actual...
### Preconditions 1. `magento/magento-coding-standard` version 12 ### Steps to reproduce 1. Have a class like this: ```php
# Summary - `phpcs` allows the sniff to provide the ability to auto-fix using `phpcbf`. These are 2 that come up a lot for me as PhpStorm has them as...
### Preconditions In PHP 8, functions like **token_get_all** treat namespaced names as single token, e.g. ``` // Before: T_NS_SEPARATOR T_STRING // After: T_NAME_FULLY_QUALIFIED ``` Details: https://wiki.php.net/rfc/namespaced_names_as_token There are couple places...