From 1afe6c00a16f48519517aa530b1fbb91282940fb Mon Sep 17 00:00:00 2001 From: Paolo Date: Tue, 22 Aug 2017 10:32:11 +0200 Subject: [PATCH] Removed check of size functions in loop statements in CS --- .../ValidFunctionNameSniff.php | 19 -------------- tests/codesniffer/FHComplete/ruleset.xml | 26 +------------------ 2 files changed, 1 insertion(+), 44 deletions(-) diff --git a/tests/codesniffer/FHComplete/Sniffs/NamingConventions/ValidFunctionNameSniff.php b/tests/codesniffer/FHComplete/Sniffs/NamingConventions/ValidFunctionNameSniff.php index b9c4a6964..43bfd9b49 100644 --- a/tests/codesniffer/FHComplete/Sniffs/NamingConventions/ValidFunctionNameSniff.php +++ b/tests/codesniffer/FHComplete/Sniffs/NamingConventions/ValidFunctionNameSniff.php @@ -105,25 +105,6 @@ class FHComplete_Sniffs_NamingConventions_ValidFunctionNameSniff extends PHP_Cod return; } } - //elseif ($isPrivate === true) { - // if (substr($methodName, 0, 2) !== '__') { - // $error = 'Private method name "%s" must be prefixed with 2 underscores'; - // $phpcsFile->addError($error, $stackPtr, 'PrivateNoUnderscore', $errorData); - // return; - // } else { - // $filename = $phpcsFile->getFilename(); - // if (strpos($filename, '/lib/Cake/') === true) { - // $warning = 'Private method name "%s" in FHComplete core is discouraged'; - // $phpcsFile->addWarning($warning, $stackPtr, 'PrivateMethodInCore', $errorData); - // } - // } - //} else { - // if ($methodName[0] !== '_' || substr($methodName, 0, 2) === '__') { - // $error = 'Protected method name "%s" must be prefixed with one underscore'; - // $phpcsFile->addError($error, $stackPtr, 'ProtectedNoUnderscore', $errorData); - // return; - // } - //} } /** diff --git a/tests/codesniffer/FHComplete/ruleset.xml b/tests/codesniffer/FHComplete/ruleset.xml index 25055a89a..80c043082 100644 --- a/tests/codesniffer/FHComplete/ruleset.xml +++ b/tests/codesniffer/FHComplete/ruleset.xml @@ -14,6 +14,7 @@ + @@ -22,31 +23,6 @@ - - - - -