woocommerce/phpcs.ruleset.xml

81 lines
5.2 KiB
XML
Raw Normal View History

2016-08-27 14:18:14 +00:00
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards">
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
<!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/WordPress-Core/ruleset.xml -->
2017-09-27 16:07:41 +00:00
<description>WooCommerce dev PHP_CodeSniffer ruleset.</description>
2016-08-27 14:18:14 +00:00
<rule ref="WordPress">
<exclude name="Generic.CodeAnalysis.EmptyStatement.DetectedCATCH" />
<exclude name="Generic.CodeAnalysis.EmptyStatement.DetectedIF" />
<exclude name="Generic.CodeAnalysis.EmptyStatement.DetectedELSE" />
2016-09-01 20:50:14 +00:00
<exclude name="Generic.CodeAnalysis.ForLoopWithTestFunctionalCall.NotAllowed" />
2016-08-27 14:18:14 +00:00
<exclude name="Generic.Files.LineEndings.InvalidEOLChar" />
<exclude name="Generic.Files.LowercasedFilename.NotFound" />
<exclude name="Generic.PHP.NoSilencedErrors.Discouraged" />
2016-09-01 20:50:14 +00:00
<exclude name="WordPress.Classes.ClassOpeningStatement.BraceOnNewLine" />
2016-08-27 14:18:14 +00:00
<exclude name="WordPress.CSRF.NonceVerification.NoNonceVerification" />
2016-09-01 20:50:14 +00:00
<exclude name="WordPress.DB.RestrictedFunctions.mysql" />
2016-08-27 14:18:14 +00:00
<exclude name="WordPress.Files.FileName.UnderscoresNotAllowed" />
2016-09-01 20:50:14 +00:00
<exclude name="WordPress.Functions.DontExtract.extract" />
2016-08-27 14:18:14 +00:00
<exclude name="WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid" />
2016-09-01 20:50:14 +00:00
<exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid" />
2016-09-09 16:39:09 +00:00
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores" />
2016-08-27 14:18:14 +00:00
<exclude name="WordPress.NamingConventions.ValidVariableName.MemberNotSnakeCase" />
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCase" />
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar" />
<exclude name="WordPress.NamingConventions.ValidVariableName.StringNotSnakeCase" />
<exclude name="WordPress.PHP.DiscouragedFunctions.Discouraged" />
<exclude name="WordPress.PHP.DiscouragedFunctions.DiscouragedWithAlternative" />
<exclude name="WordPress.PHP.StrictComparisons.LooseComparison" />
<exclude name="WordPress.PHP.StrictInArray.MissingTrueStrict" />
<exclude name="WordPress.VIP.AdminBarRemoval.RemovalDetected" />
2016-09-07 22:32:24 +00:00
<exclude name="WordPress.VIP.CronInterval.ChangeDetected" />
2016-08-27 14:18:14 +00:00
<exclude name="WordPress.VIP.DirectDatabaseQuery.DirectQuery" />
<exclude name="WordPress.VIP.DirectDatabaseQuery.NoCaching" />
<exclude name="WordPress.VIP.DirectDatabaseQuery.SchemaChange" />
<exclude name="WordPress.VIP.FileSystemWritesDisallow.FileWriteDetected" />
<exclude name="WordPress.VIP.OrderByRand.orderby" />
<exclude name="WordPress.VIP.PostsPerPage.posts_per_page" />
<exclude name="WordPress.VIP.RestrictedFunctions.count_user_posts" />
<exclude name="WordPress.VIP.RestrictedFunctions.custom_role" />
<exclude name="WordPress.VIP.RestrictedFunctions.cookies" />
<exclude name="WordPress.VIP.RestrictedFunctions.curl" />
2016-09-01 20:50:14 +00:00
<exclude name="WordPress.VIP.RestrictedFunctions.error_log" />
2016-08-27 14:18:14 +00:00
<exclude name="WordPress.VIP.RestrictedFunctions.extract" />
<exclude name="WordPress.VIP.RestrictedFunctions.file_get_contents" />
<exclude name="WordPress.VIP.RestrictedFunctions.get_pages" />
<exclude name="WordPress.VIP.RestrictedFunctions.get_posts" />
<exclude name="WordPress.VIP.RestrictedFunctions.get_term_by" />
<exclude name="WordPress.VIP.RestrictedFunctions.get_term_link" />
<exclude name="WordPress.VIP.RestrictedFunctions.parse_url" />
2016-09-01 20:50:14 +00:00
<exclude name="WordPress.VIP.RestrictedFunctions.prevent_path_disclosure" />
<exclude name="WordPress.VIP.RestrictedFunctions.runtime_configuration" />
<exclude name="WordPress.VIP.RestrictedFunctions.serialize" />
<exclude name="WordPress.VIP.RestrictedFunctions.urlencode" />
2016-08-27 14:18:14 +00:00
<exclude name="WordPress.VIP.RestrictedFunctions.url_to_postid" />
<exclude name="WordPress.VIP.RestrictedFunctions.user_meta" />
2016-09-01 20:50:14 +00:00
<exclude name="WordPress.VIP.RestrictedFunctions.wp_redirect" />
2016-08-27 14:18:14 +00:00
<exclude name="WordPress.VIP.RestrictedFunctions.wp_remote_get" />
<exclude name="WordPress.VIP.RestrictedVariables.user_meta" />
<exclude name="WordPress.VIP.RestrictedVariables.cache_constraints" />
<exclude name="WordPress.VIP.SessionFunctionsUsage.session_write_close" />
<exclude name="WordPress.VIP.SlowDBQuery.slow_db_query" />
<exclude name="WordPress.VIP.SuperGlobalInputUsage.AccessDetected" />
<exclude name="WordPress.VIP.ValidatedSanitizedInput.InputNotSanitized" />
<exclude name="WordPress.VIP.ValidatedSanitizedInput.InputNotValidated" />
<exclude name="WordPress.VIP.ValidatedSanitizedInput.MissingUnslash" />
<exclude name="WordPress.Variables.GlobalVariables.OverrideProhibited" />
<exclude name="WordPress.WP.EnqueuedResources.NonEnqueuedScript" />
2016-09-01 20:50:14 +00:00
<exclude name="WordPress.WP.I18n.MissingSingularPlaceholder" />
<exclude name="WordPress.WP.I18n.MismatchedPlaceholders" />
<exclude name="WordPress.WP.I18n.NonSingularStringLiteralPlural" />
<exclude name="WordPress.WP.I18n.NonSingularStringLiteralText" />
2016-08-27 14:18:14 +00:00
<exclude name="WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet" />
<exclude name="WordPress.WP.PreparedSQL.NotPrepared" />
<exclude name="WordPress.XSS.EscapeOutput.OutputNotEscaped" />
<exclude name="WordPress.XSS.EscapeOutput.UnsafePrintingFunction" />
2017-03-21 13:14:51 +00:00
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
2016-08-27 14:18:14 +00:00
</rule>
</ruleset>