-
Notifications
You must be signed in to change notification settings - Fork 191
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
Improve Scrutinizer Score #675
Comments
…h default fallback to improve scrutinizer score #675
* master: Doc added for $default param Remove usage of global $give_options in place for give_get_option with default fallback to improve scrutinizer score #675 # Conflicts: # includes/misc-functions.php
Interesting read about globals and how to remove them from your code: https://core.trac.wordpress.org/ticket/37699 |
* master: (24 commits) New POT file generated for 1.6.1 Added change log for #863 Added code to set default email receipt content upon install #863 version bumped to 1.6.1 Change log added for #945 Add `first_name` and `last_name` to PP standard #945 Fixed screenshot description issue #990 Change log item added for #997 php docs Fix issue #997 Add extra class attribute Fixed @property-read conflicting with calls to read-only props and added missing props #675 Addiction @property-read doc block #675 Removed give_undo_donation_on_refund which is never used - left over from fork - code improved #675 Add @property-read to class declaration to resolve https://scrutinizer-ci.com/g/WordImpress/Give/inspections/f8e0f43d-ff3d-4e85-9fbd-ac6be87fac72/issues/files/includes/emails/class-give-email-tags.php?status=new&orderField=path&order=asc&honorSelectedPaths=0 #675 Simplify logic & Scrutinizer score #675 meta doesn't exist in Give_Payment - it's payment_meta Use missing parameter Fix the title level text in {donation} email template tag Fix issue #981 ... Fixed Conflicts: give.php includes/admin/reporting/export/class-batch-export-customers.php includes/gateways/paypal-standard.php includes/install.php includes/payments/class-give-payment.php languages/give.pot readme.txt templates/shortcode-profile-editor.php
… issue/1247 * 'issue/1247' of https://github.com/WordImpress/Give: Provide properties for PHPdocs related to #675 Refactored give_email_tag_donation #1247 # Conflicts: # includes/emails/class-give-email-tags.php
* release/1.7: (22 commits) Removed the default output text “There was an error retrieving”… #1247 Changed var naming from $include_level_name to $only_level for better clarity #1247 Updated Settings > licencing CSS layout #357 Style update for licenses Consolidate offline donation gateway functions into the offline gateway file #1261 #1262 Sentence closure Revert "Add line and file name to error notice" update notice message Add line and file name to error notice add filter hook show notice for offline donation update pending donation notice define missing remove unnessary class from offline instruction row from receipt update reciept css update offline payment message on receipt page add action hook to add offline instruction to receipt refactor give_offline_payment_cc_form function Add helper function give_get_offline_payment_instruction Improve PHPdocs #675 Provide properties for PHPdocs related to #675 ... # Conflicts: # assets/css/give-admin-rtl.css # assets/css/give-admin-rtl.min.css # assets/css/give-admin.css # assets/css/give-admin.min.css # assets/scss/admin/settings.scss # assets/sourcemaps/give-admin.css.map # assets/sourcemaps/give.css.map # includes/admin/class-give-settings.php # includes/class-give-donate-form.php # includes/gateways/offline-donations.php # templates/give-rtl.min.css # templates/give.min.css a
Improving doc blocks / Scrutinizer #675
* master: New POT file for 1.7 Added additional readme items for 1.7 Fixed typos and doc bloc inaccuracies #675 Additional property declarations #675 Add form_id and form object to give_form_title filter Do not render unpublish or transhed form Add form id and form object to give_form_title # Conflicts: # includes/forms/template.php
@ravinderk let me run this idea by you. We're getting hit pretty hard on Scrutinizer due to the code complexity "Conditions" and "Paths": This example has >20000: https://scrutinizer-ci.com/g/WordImpress/Give/code-structure/master/operation/includes%2Fprocess-donation.php%3A%3Agive_purchase_form_validate_new_user Proposed SolutionFor the "Paths" it's likely due to checking if
|
* master: Fixed indentation issue Trying again… Fixing scrutinizer upset with brackets {} :( Ensure scrutinizer uses WP coding standards when sniffing #675 Version bumped to 1.7.2 - readme updated for release - POT file generated Fixed Conflicts: .scrutinizer.yml give.php readme.txt
Phpdoc cleanup to help with Scrutinizer in #675
Closing this old issue out as it's an ongoing effort. |
They provide a lot of great code improvement fixes that we should be completing ongoing as we can on Scrutinizer: https://scrutinizer-ci.com/g/WordImpress/Give/code-structure/master/hot-spots
The text was updated successfully, but these errors were encountered: