PluginProbe ʕ •ᴥ•ʔ
Wp Social Login and Register Social Counter / 2.2.4
Wp Social Login and Register Social Counter v2.2.4
trunk 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.10 1.3.11 1.3.2 1.3.3 1.3.4 1.3.6 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.4 1.4.5 1.4.6 1.4.8 1.4.9 1.5.0 1.6.0 1.6.1 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.8.0 1.8.1 1.8.2 1.8.3 1.8.5 1.8.6 1.9.0 2.0.0 2.1.0 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.8 2.2.9 3.0.0 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0
wp-social / phpcs.xml
wp-social Last commit date
app 3 years ago assets 3 years ago base 5 years ago helper 3 years ago inc 3 years ago languages 2 years ago lib 2 years ago template 3 years ago traits 5 years ago xs_migration 3 years ago autoload.php 5 years ago instruction.txt 4 years ago keys.php 4 years ago phpcs.xml 3 years ago plugin.php 4 years ago readme.txt 2 years ago wp-social.php 2 years ago
phpcs.xml
80 lines
1 <?xml version="1.0"?>
2 <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WordPress Coding Standards" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
3
4 <description>The Coding standard for the WordPress Coding Standards itself.</description>
5
6 <file>.</file>
7
8 <arg value="sp"/>
9 <arg name="extensions" value="php"/>
10 <arg name="basepath" value="."/>
11 <arg name="parallel" value="8"/>
12 <!-- <arg name="cache" value="false"/> -->
13 <!-- <arg name="standard" value="WordPress"/> -->
14
15 <exclude-pattern>dev-*</exclude-pattern>
16 <exclude-pattern>node_modules/*</exclude-pattern>
17 <exclude-pattern>vendor/*</exclude-pattern>
18
19 <!-- <rule ref="WordPress"> -->
20 <!-- <exclude name="WordPress.Files.FileName"/> -->
21 <!-- <exclude name="WordPress.NamingConventions.ValidVariableName"/> -->
22 <!-- <exclude name="WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition"/> -->
23 <!-- </rule> -->
24
25 <rule ref="WordPress.Security">
26 <exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine"/>
27 <exclude name="WordPress.Files.FileName"/>
28 <exclude name="WordPress.Arrays"/>
29 <exclude name="WordPress.NamingConventions.ValidVariableName"/>
30 <exclude name="WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition"/>
31 </rule>
32 <!-- Enforce PSR1 compatible namespaces. -->
33 <!-- <rule ref="PSR1.Classes.ClassDeclaration"/> -->
34
35 <!-- <rule ref="WordPress.Arrays.MultipleStatementAlignment"> -->
36 <!-- <properties> -->
37 <!-- <property name="alignMultilineItems" value="!=100"/> -->
38 <!-- <property name="exact" value="false" phpcs-only="true"/> -->
39 <!-- </properties> -->
40 <!-- </rule> -->
41
42 <rule ref="PSR2.Methods.FunctionClosingBrace"/>
43
44 <!-- Check code for cross-version PHP compatibility. -->
45 <!-- <config name="testVersion" value="5.4-"/> -->
46 <!-- <rule ref="PHPCompatibility"> -->
47 <!-- Exclude PHP constants back-filled by PHPCS. -->
48 <!-- <exclude name="PHPCompatibility.Constants.NewConstants.t_finallyFound"/> -->
49 <!-- <exclude name="PHPCompatibility.Constants.NewConstants.t_yieldFound"/> -->
50 <!-- <exclude name="PHPCompatibility.Constants.NewConstants.t_ellipsisFound"/> -->
51 <!-- <exclude name="PHPCompatibility.Constants.NewConstants.t_powFound"/> -->
52 <!-- <exclude name="PHPCompatibility.Constants.NewConstants.t_pow_equalFound"/> -->
53 <!-- <exclude name="PHPCompatibility.Constants.NewConstants.t_spaceshipFound"/> -->
54 <!-- <exclude name="PHPCompatibility.Constants.NewConstants.t_coalesceFound"/> -->
55 <!-- <exclude name="PHPCompatibility.Constants.NewConstants.t_coalesce_equalFound"/> -->
56 <!-- <exclude name="PHPCompatibility.Constants.NewConstants.t_yield_fromFound"/> -->
57 <!-- </rule> -->
58
59 <!--
60 #############################################################################
61 Handbook: PHP - Formatting SQL statements.
62 Ref: https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/#formatting-sql-statements
63 #############################################################################
64 -->
65
66 <!-- Rule: in $wpdb->prepare - %s is used for string placeholders and %d is used for integer
67 placeholders. Note that they are not 'quoted'! -->
68 <rule ref="WordPress.DB.PreparedSQLPlaceholders"/>
69 <rule ref="WordPress.DB.DirectDatabaseQuery" />
70
71 <!-- Covers rule: $wpdb->prepare()... The benefit of this is that we don't have to remember
72 to manually use esc_sql(), and also that it is easy to see at a glance whether something
73 has been escaped or not, because it happens right when the query happens. -->
74 <rule ref="WordPress.DB.PreparedSQL"/>
75
76 <!-- Covers rule: Avoid touching the database directly. -->
77 <rule ref="WordPress.DB.RestrictedFunctions"/>
78 <rule ref="WordPress.DB.RestrictedClasses"/>
79
80 </ruleset>