-
Notifications
You must be signed in to change notification settings - Fork 15
Upgrade CodeSniffer v4 #345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
DMarinhoCodacy
wants to merge
3
commits into
master
Choose a base branch
from
Upgrade-CS-v4
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,48 +1,26 @@ | ||
| { | ||
| "require": { | ||
| "automattic/vipwpcs": "^3.0.0", | ||
| "cakephp/cakephp-codesniffer": "^5.1", | ||
| "dealerdirect/phpcodesniffer-composer-installer": "^1.0.0", | ||
| "doctrine/coding-standard": "^12.0.0", | ||
| "drupal/coder": "^8.3.24", | ||
| "escapestudios/symfony2-coding-standard": "^3.13.0", | ||
| "magento/magento-coding-standard": "32.0", | ||
| "magento/marketplace-eqp": "^4.0.0", | ||
| "pheromone/phpcs-security-audit": "^2.0.1", | ||
| "phpcompatibility/php-compatibility": "9.3.5", | ||
| "phpcompatibility/phpcompatibility-paragonie": "^1.3.3", | ||
| "phpcompatibility/phpcompatibility-wp": "^2.1.5", | ||
| "phpstan/phpdoc-parser": "^1.28.0", | ||
| "slevomat/coding-standard": "^8.15.0", | ||
| "squizlabs/php_codesniffer": "3.10.1", | ||
| "symfony/flex": "^2.4.5", | ||
| "vaimo/phpcs-rulesets": "dev-codacy", | ||
| "wp-coding-standards/wpcs": "^3.1.0", | ||
| "vaimo/uk-phpcs-standards": "dev-master" | ||
|
|
||
|
|
||
| "cakephp/cakephp-codesniffer": "5.3.0", | ||
| "drupal/coder": "9.0.1", | ||
| "escapestudios/symfony2-coding-standard": "3.18.0", | ||
| "slevomat/coding-standard": "8.30.1", | ||
| "phpcompatibility/php-compatibility": "10.0.0-alpha2", | ||
|
|
||
| "squizlabs/php_codesniffer": "4.0.1", | ||
|
|
||
| "symfony/flex": "2.11.0", | ||
| "dealerdirect/phpcodesniffer-composer-installer": "1.2.1", | ||
| "doctrine/coding-standard": "14.0.0", | ||
| "phpcompatibility/phpcompatibility-paragonie": "2.0.0-alpha2", | ||
| "phpcompatibility/phpcompatibility-wp": "3.0.0-alpha2", | ||
| "phpstan/phpdoc-parser": "2.3.2" | ||
| }, | ||
| "repositories": [ | ||
| { | ||
| "type": "vcs", | ||
| "url": "https://github.com/magento/marketplace-eqp.git" | ||
| }, | ||
| { | ||
| "type": "vcs", | ||
| "url": "https://bitbucket.org/vaimo/phpcs-rulesets.git" | ||
| }, | ||
| { | ||
| "type": "vcs", | ||
| "url": "https://bitbucket.org/vaimo/uk-phpcs-standards.git" | ||
| } | ||
| ], | ||
| "config": { | ||
| "allow-plugins": { | ||
| "dealerdirect/phpcodesniffer-composer-installer": true, | ||
| "symfony/flex": true, | ||
| "phpdocumentor/unified-asset-installer": true | ||
| "dealerdirect/phpcodesniffer-composer-installer": true | ||
| } | ||
| }, | ||
| "require-dev": { | ||
| "phpunit/phpunit": "^11.1", | ||
| "phpcompatibility/php-compatibility": "*" | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 HIGH RISK
The Dockerfile incorrectly installs a redundant PHP package and configures the wrong ini path. The base image already provides PHP; installing it again via the package manager is redundant. Furthermore, modifying the configuration in the package-specific path will be ignored by the primary binary. Use the official best practice: apply settings to the file in the directory defined by
$PHP_INI_DIR(typically/usr/local/etc/php/php.ini) to ensure theshort_open_tag=Onsetting takes effect.