mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Removed check of size functions in loop statements in CS
This commit is contained in:
@@ -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;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<exclude name="Squiz.ControlStructures.ControlSignature" />
|
||||
<exclude name="Squiz.Classes.ValidClassName" />
|
||||
<exclude name="Generic.ControlStructures.InlineControlStructure" />
|
||||
<exclude name="Squiz.PHP.DisallowSizeFunctionsInLoops" />
|
||||
</rule>
|
||||
|
||||
<rule ref="Generic.Files.LineLength">
|
||||
@@ -22,31 +23,6 @@
|
||||
<property name="absoluteLineLimit" value="150"/>
|
||||
</properties>
|
||||
</rule>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--
|
||||
<rule ref="Squiz.Classes.ValidClassName">
|
||||
<type>warning</type>
|
||||
</rule>
|
||||
Temporarily ignore until API docblock formatting and line length issues in core code are fixed.
|
||||
<rule ref="FHComplete.Commenting.FunctionComment.ParamCommentNotCapital">
|
||||
<severity>0</severity>
|
||||
</rule>
|
||||
<rule ref="FHComplete.Commenting.FunctionComment.ParamCommentFullStop">
|
||||
<severity>0</severity>
|
||||
</rule>
|
||||
<rule ref="FHComplete.Commenting.FunctionComment.ThrowsNotCapital">
|
||||
<severity>0</severity>
|
||||
</rule>
|
||||
<rule ref="FHComplete.Commenting.FunctionComment.ThrowsNoFullStop">
|
||||
<severity>0</severity>
|
||||
</rule>
|
||||
<rule ref="FHComplete.Commenting.FunctionComment.EmptyThrows">
|
||||
<severity>0</severity>
|
||||
</rule>
|
||||
-->
|
||||
<rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
|
||||
|
||||
<rule ref="Squiz.Classes.LowercaseClassKeywords"/>
|
||||
|
||||
Reference in New Issue
Block a user