Commit 0c32f20
committed
feat(ruleset): expand WPTechnix WordPress ruleset
Added explicit WordPress rules to the WPTechnix ruleset, including:
- CodeAnalysis: AssignmentInTernaryCondition, EscapedNotTranslated
- DateTime: CurrentTimeTimestamp, RestrictedFunctions
- Database: DirectDatabaseQuery, PreparedSQL, PreparedSQLPlaceholders, RestrictedClasses, RestrictedFunctions, SlowDBQuery
- PHP: DevelopmentFunctions, DiscouragedPHPFunctions, IniSet, NoSilencedErrors, POSIXFunctions, PregQuoteDelimiter, RestrictedPHPFunctions, StrictInArray, TypeCasts
- Security: EscapeOutput, NonceVerification, PluginMenuSlug, SafeRedirect, ValidatedSanitizedInput
- Utils: I18nTextDomainFixer
- WP Specific: AlternativeFunctions, Capabilities, CapitalPDangit, ClassNameCase, DeprecatedClasses, DeprecatedFunctions, DeprecatedParameters, DeprecatedParameterValues, DiscouragedConstants, DiscouragedFunctions, EnqueuedResourceParameters, EnqueuedResources, GetMetaSingle, GlobalVariablesOverride, I18n, PostsPerPage
Ensures WPTechnix WordPress Coding Standards cover key security, database, PHP, and WordPress best practices.1 parent db3119d commit 0c32f20
1 file changed
+58
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
4 | 62 | | |
0 commit comments