Created
December 19, 2017 13:07
-
-
Save igmoweb/0477901a15b7905e8dea1f854e74bec4 to your computer and use it in GitHub Desktop.
Revisions
-
igmoweb created this gist
Dec 19, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,37 @@ <?xml version="1.0"?> <ruleset name="Ignacio"> <description>Security reviews with PHPCS.</description> <file>.</file> <!-- Exclude the Composer Vendor directory. --> <exclude-pattern>/vendor/*</exclude-pattern> <!-- Exclude the Node Modules directory. --> <exclude-pattern>/node_modules/*</exclude-pattern> <!-- wpcs installed path --> <config name="installed_paths" value="/Users/ignacio/.composer/vendor/wp-coding-standards/wpcs" /> <!-- PHPCS WP Aliases. Needed to execute WP Rules --> <autoload>/Users/ignacio/.composer/vendor/wp-coding-standards/wpcs/WordPress/PHPCSAliases.php</autoload> <!-- Just check php files --> <arg name="extensions" value="php"/> <!-- Colors! Nice! --> <arg name="colors"/> <!-- Set of rules we're going to use --> <rule ref="WordPress.XSS"/> <rule ref="WordPress.CSRF"/> <rule ref="WordPress.VIP.ValidatedSanitizedInput"/> <rule ref="WordPress.WP.PreparedSQL"/> <rule ref="WordPress.Variables.GlobalVariables"/> <rule ref="WordPress.PHP.StrictInArray"/> <rule ref="Squiz.PHP.Eval"/> <rule ref="Squiz.PHP.Eval.Discouraged"> <type>error</type> <message>eval() is a security risk so not allowed.</message> </rule> </ruleset>