-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Code quality: added PHPMD, updated workflow #4303
Merged
Merged
Conversation
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
Merged
# Conflicts: # .ddev/commands/web/phpunit-coverage # .ddev/commands/web/phpunit-coverage-local # .phpstan.dist.baseline.neon # tests/unit/Mage/Admin/Model/UserTest.php
# Conflicts: # .github/workflows/phpcs.yml # .phpcs.ecg.xml.dist # .phpstan.dist.baseline.neon # composer.json
github-actions
bot
removed
Component: ProductAlert
Relates to Mage_ProductAlert
Component: Sitemap
Relates to Mage_Sitemap
Component: Cron
Relates to Mage_Cron
Component: Widget
Relates to Mage_Widget
Component: Weee
Relates to Mage_Weee
Component: Sendfriend
Relates to Mage_Sendfriend
Component: Log
Relates to Mage_Log
Component: Authorizenet
Relates to Mage_Authorizenet
Component: GoogleAnalytics
Relates to Mage_GoogleAnalytics
Component: Paygate
Relates to Mage_Paygate
labels
Nov 8, 2024
kiatng
approved these changes
Nov 11, 2024
addison74
approved these changes
Nov 11, 2024
fballiano
added a commit
to MahoCommerce/maho
that referenced
this pull request
Nov 11, 2024
sreichel
added a commit
to sreichel/magento-lts
that referenced
this pull request
Nov 11, 2024
fballiano
added a commit
to MahoCommerce/maho
that referenced
this pull request
Nov 11, 2024
addison74
pushed a commit
that referenced
this pull request
Nov 12, 2024
* Bugfix: hide exception, ref #4303 * Update app/code/core/Mage/Core/Model/Layout.php Co-authored-by: Ng Kiat Siong <[email protected]> --------- Co-authored-by: Ng Kiat Siong <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Component: Adminhtml
Relates to Mage_Adminhtml
Component: Api
PageRelates to Mage_Api
Component: Api2
Relates to Mage_Api2
Component: Bundle
Relates to Mage_Bundle
Component: Catalog
Relates to Mage_Catalog
Component: CatalogIndex
Relates to Mage_CatalogIndex
Component: CatalogInventory
Relates to Mage_CatalogInventory
Component: Checkout
Relates to Mage_Checkout
Component: Cms
Relates to Mage_Cms
Component: ConfigurableSwatches
Relates to Mage_ConfigurableSwatches
Component: Core
Relates to Mage_Core
Component: Customer
Relates to Mage_Customer
Component: Dataflow
Relates to Mage_Dataflow
Component: Directory
Relates to Mage_Directory
Component: Downloadable
Relates to Mage_Downloadable
Component: Eav
Relates to Mage_Eav
Component: ImportExport
Relates to Mage_ImportExport
Component: Index
Relates to Mage_Index
Component: Install
Relates to Mage_Install
Component: lib/Mage
Relates to lib/Mage
Component: lib/Varien
Relates to lib/Varien
Component: lib/*
Relates to lib/*
Component: Oauth
Relates to Mage_Oauth
Component: Page
Relates to Mage_Page
Component: Payment
Relates to Mage_Payment
Component: PayPal
Relates to Mage_Paypal
Component: Reports
Relates to Mage_Reports
Component: Review
Relates to Mage_Review
Component: Rss
Relates to Mage_Rss
Component: Sales
Relates to Mage_Sales
Component: SalesRule
Relates to Mage_SalesRule
Component: Shipping
Relates to Mage_Shipping
Component: Tax
Relates to Mage_Tax
Component: Uploader
Relates to Mage_Uploader
Component: Usa
Relates to Mage_Usa
Component: Wishlist
Relates to Mage_Wishlist
composer
Relates to composer.json
ddev
environment
phpcs
phpstan
phpunit
rector
Template : admin
Relates to admin template
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.
Description (*)
PHPMD
Added to workflow. The config is there since years, but it never was used b/c of to much "common" errors.
Note: Underscore-prefix is still allowed but may be removed (?).
PHPCS: ECG standard
This check was useles. It had only onyl rule (
Ecg.Performance.Loop.ModelLSD
) enabled and every files was excluded.Added rules. Some of them could/should be removed/fixed seperatly.
phpstorm
In phpstorms phpcs-config you can only select one config file for code-sniffs, but we have three (default, phpcompa, ecg). Added
.phpcs.xml
to allow syntax highlighting for all sniffs. Just add this file as custom ruleset.Note: for custom rules use local
phpcs.xml
Minor changes
phpcs:ignore comments
(not all)Related Pull Requests