Permalink
Browse files

Update rules, lint more

  • Loading branch information...
ronilaukkarinen committed May 16, 2016
1 parent 47c0026 commit 65173e12963efbfa570e22a1dee9f5f5b3673176
Showing with 5 additions and 1 deletion.
  1. +1 −0 .jscsrc
  2. +1 −0 .jshintignore
  3. +1 −0 codesniffer.ruleset.xml
  4. +1 −1 functions.php
  5. +1 −0 ruleset.xml
View
@@ -3,6 +3,7 @@
"fileExtensions": [ ".js" ],
"excludeFiles": [
"js/all.js",
"js/src/*.js",
"gulpfile.js"
]
}
View
@@ -1,2 +1,3 @@
js/all.js
js/src/*.js
gulpfile.js
View
@@ -39,6 +39,7 @@
<exclude name="WordPress.Variables.GlobalVariables" />
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis" />
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis)" />
<exclude name="WordPress.PHP.StrictInArray.MissingTrueStrict" />
<exclude name="WordPress.VIP.RestrictedFunctions" />
<exclude name="WordPress.VIP.AdminBarRemoval.RemovalDetected" />
View
@@ -72,7 +72,7 @@ function air_remove_admin_login_header() {
*
* @link https://wordpress.org/support/topic/how-to-remove-query-strings-from-static-resources
*/
function air_remove_script_version ( $src ) {
function air_remove_script_version( $src ) {
$parts = explode( '?', $src );
return $parts[0];
}
View
@@ -39,6 +39,7 @@
<exclude name="WordPress.Variables.GlobalVariables" />
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis" />
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis)" />
<exclude name="WordPress.PHP.StrictInArray.MissingTrueStrict" />
<exclude name="WordPress.VIP.RestrictedFunctions" />
<exclude name="WordPress.VIP.AdminBarRemoval.RemovalDetected" />

0 comments on commit 65173e1

Please sign in to comment.