FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mainwp/phpcs.xml at main · mainwp/mainwp · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
mainwp
/
mainwp
Public
Notifications
You must be signed in to change notification settings
Fork
102
Star
510
Code
Issues
2
Pull requests
1
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
mainwp
/
phpcs.xml
Copy path
More file actions
More file actions
Latest commit
History
History
History
73 lines (58 loc) · 2.73 KB
Breadcrumbs
mainwp
/
phpcs.xml
Copy path
File metadata and controls
73 lines (58 loc) · 2.73 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
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
62
63
64
65
66
67
68
69
70
71
72
73
<?
xml
version
=
"
1.0
"
?>
<
ruleset
name
=
"
WordPress Coding Standards
"
>
<
description
>MainWP dev PHP_CodeSniffer ruleset.</
description
>
<!--
Check all PHP files in directory tree by default.
-->
<
file
>.</
file
>
<
exclude-pattern
>*/vendor/*</
exclude-pattern
>
<
exclude-pattern
>*/bin/*</
exclude-pattern
>
<
exclude-pattern
>*/.github/*</
exclude-pattern
>
<
exclude-pattern
>*/tests/*</
exclude-pattern
>
<
exclude-pattern
>libs/</
exclude-pattern
>
<
exclude-pattern
>assets/js/apexcharts/*</
exclude-pattern
>
<
exclude-pattern
>assets/js/gridstack/*</
exclude-pattern
>
<
exclude-pattern
>assets/js/dropzone/**</
exclude-pattern
>
<
exclude-pattern
>cron/</
exclude-pattern
>
<
arg
value
=
"
sp
"
/>
<
arg
name
=
"
extensions
"
value
=
"
php
"
/>
<
arg
name
=
"
basepath
"
value
=
"
.
"
/>
<
arg
name
=
"
parallel
"
value
=
"
8
"
/>
<!--
Configs
-->
<
config
name
=
"
minimum_supported_wp_version
"
value
=
"
5.2
"
/>
<!--
Rules
-->
<
rule
ref
=
"
WordPress
"
>
<
exclude
name
=
"
WordPress.NamingConventions.ValidVariableName
"
/>
<
exclude
name
=
"
WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition
"
/>
<!--
Disable Strict comparison in array check. Not applicable in the mojority of cases.
-->
<
exclude
name
=
"
WordPress.PHP.StrictInArray
"
/>
<
exclude
name
=
"
WordPress.WP.I18n
"
/>
<
exclude
name
=
"
WordPress.Files.FileName.InvalidClassFileName
"
/>
<
exclude
name
=
"
WordPress.DB.DirectDatabaseQuery.NoCaching
"
/>
<
exclude
name
=
"
WordPress.WP.CapitalPDangit.Misspelled
"
/>
<
exclude
name
=
"
Universal.ControlStructures.DisallowAlternativeSyntax.FoundIfWithInlineHTML
"
/>
<
exclude
name
=
"
Universal.ControlStructures.DisallowAlternativeSyntax.FoundForeachWithInlineHTML
"
/>
<
exclude
name
=
"
Universal.ControlStructures.DisallowAlternativeSyntax.FoundIf
"
/>
<
exclude
name
=
"
Universal.ControlStructures.IfElseDeclaration.NoNewLine
"
/>
<
exclude
name
=
"
Universal.Classes.RequireFinalClass.NonFinalClassFound
"
/>
<
exclude
name
=
"
Universal.Namespaces.EnforceCurlyBraceSyntax.Forbidden
"
/>
<
exclude
name
=
"
Generic.Commenting.Todo
"
/>
<
exclude
name
=
"
Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition
"
/>
<
exclude
name
=
"
Generic.CodeAnalysis.EmptyStatement.DetectedCatch
"
/>
</
rule
>
<
rule
ref
=
"
WordPress.WP.CapitalPDangit
"
>
<
severity
>0</
severity
>
</
rule
>
<
rule
ref
=
"
WordPress
"
>
<
exclude
name
=
"
Generic.WhiteSpace.DisallowSpaceIndent
"
/>
</
rule
>
<
rule
ref
=
"
Generic.WhiteSpace.ScopeIndent
"
>
<
properties
>
<
property
name
=
"
indent
"
value
=
"
4
"
/>
<
property
name
=
"
tabIndent
"
value
=
"
false
"
/>
</
properties
>
<
exclude-pattern
>assets/js/mainwp.js</
exclude-pattern
>
</
rule
>
<
rule
ref
=
"
Generic.WhiteSpace.DisallowTabIndent
"
/>
<
rule
ref
=
"
WordPress.Files.FileName.NotHyphenatedLowercase
"
>
<
exclude-pattern
>/cron/backups_continue\.php$</
exclude-pattern
>
</
rule
>
</
ruleset
>
Back
|
FazBrowse Home
|
New Git URL