Open kagg-design opened 2 years ago
@kagg-design I would suggest making each individual unchecked checkbox as a separate GH issue. This way it will be easier to have relevant conversations separate plus easier to reference completed issues in commits.
Expected Behavior
There are several issues found upon commencement of repo usage with the WPForms plugins.
Current Behavior
@runInSeparateProcess
in tests. Fixed in 05eb4391687e1fecd0c7a7490d80785736a32961.multi_domains
setting to the phpcs.xml blocks detection of theWordPress.Security.NonceVerification.Recommended
, For instance, inwp-content/plugins/wpforms/wpforms.php:217
. Fixed by a commit above.phpcs: WPForms.PHP.ValidateDomain.InvalidDomain: You are using invalid domain name. Use wpforms instead of wpforms-lite
appears on many files. Fixed in d973e799dc20432b243dbee55d692770ddaae170.Remove unneeded
usestatement (WPForms.PHP.UseStatement.UnusedUseStatement)
is wrong when class is used in PHPDoc only. See TestCase,php as an example. The problem was in ignoring @throws statements. Fixed in 389b5598f569ccafc4dee61ffd87e6675d92641f.phpcs: WPForms.Formatting.EmptyLineBeforeReturn.RemoveEmptyLineBeforeReturnStatement: Remove empty line before return statement in xxx line.
occurs whenif
contains a comment line and the return statement only. Fixed in 3130c0c48e7d30d2d07708650748eeb41c0fa5c5.@param
tag counting when a hook has no arguments. Fixed in 449b1e2c2b156de6540b22df0763d48bbd60564a.wpforms/includes/class-frontend.php
the statementapply_filters( 'wpforms_amp_pro', wpforms()->is_pro() )
requires 3@param
tags. - Fixed in 72bbd6750dc3602e072646f8b8d5c45507b31b12.\WPFormsSurveys\Loader::init
we improperly claimWPForms.PHP.BackSlash.UseShortSyntax
. Fixed in 66dd8ef8f7971007795f482dfb509fc3655889c4.@param
tags.. Fixed in 56a6c5ddabcdbfbd520127a704621a17b3e04275.@param
tags (screenshot)WPForms.Comments.PHPDocHooks.RequiredHookDocumentation
(screenshot1, screenshot2)phpcs: WPForms.Formatting.Switch.AddEmptyLineBefore: You should add an empty line before
on wp-content/plugins/wpforms/includes/admin/builder/functions.php:106 looks like incomplete message.Hooks can only be added in the
hooksmethod
on wp-content/plugins/wpforms/includes/admin/builder/class-builder.php:92 is repeated several times in CLI mode.apply_filters_deprecated
anddo_action_deprecated
functions./** This filter(action) is documented in path/to/file */
wpform_addon_name
. Fixed in d64997fe3582b36215b860f264dc360158b52a15.WPForms\LongNameSpacePart\LongClassName
->wpforms_long_name_space_part_long_class_name_
WPForms\Providers\Provides
->wpforms_providers_
Remove unneeded use statement
(WPForms.PHP.UseStatement.UnusedUseStatement
) is wrong when class is used in PHPDoc only. The problem was in ignoring@return
statements.<property name="wp-mail-smtp" value="." />
does not work. Fixed in 6ee0896af1dbd3e6a38f9d5e3ba6009541b59ece.