OpenBracketSpacingSniff |
class |
Drupal\Sniffs\WhiteSpace |
coder_sniffer/Drupal/Sniffs/WhiteSpace/OpenBracketSpacingSniff.php |
Checks that there is no white space after an opening bracket, for "(" and "{".
Square Brackets are handled by
\PHP_CodeSniffer\Standards\Squiz\Sniffs\Arrays\ArrayBracketSpacingSniff. |
|
|
|
OpenBracketSpacingUnitTest |
class |
Drupal\Sniffs\WhiteSpace |
coder_sniffer/Drupal/Test/WhiteSpace/OpenBracketSpacingUnitTest.php |
|
|
|
|
OpenTagNewlineSniff |
class |
Drupal\Sniffs\WhiteSpace |
coder_sniffer/Drupal/Sniffs/WhiteSpace/OpenTagNewlineSniff.php |
Checks that there is exactly one newline after the PHP open tag. |
|
|
|
OpenTagNewlineUnitTest |
class |
Drupal\Sniffs\WhiteSpace |
coder_sniffer/Drupal/Test/WhiteSpace/OpenTagNewlineUnitTest.php |
|
|
|
|
OperatorSpacingSniff |
class |
Drupal\Sniffs\WhiteSpace |
coder_sniffer/Drupal/Sniffs/WhiteSpace/OperatorSpacingSniff.php |
Overrides Squiz_Sniffs_WhiteSpace_OperatorSpacingSniff to allow the plus operator
on numbers like "$i = +1;". |
|
|
|
OperatorTest |
class |
|
coder_sniffer/Drupal/Test/good/good.php |
Test class. |
|
|
|
OptionsTSniff |
class |
DrupalPractice\Sniffs\General |
coder_sniffer/DrupalPractice/Sniffs/General/OptionsTSniff.php |
Checks that values in #otions form arrays are translated. |
|
|
|
OptionsTUnitTest |
class |
DrupalPractice\Sniffs\General |
coder_sniffer/DrupalPractice/Test/General/OptionsTUnitTest.php |
Unit test class for the OptionsT sniff. |
|
|
|
PostcodeAnywhere_Interactive_Find |
class |
|
coder_sniffer/Drupal/Test/Commenting/FunctionCommentUnitTest.inc |
|
|
|
|
PostcodeAnywhere_Interactive_FindByParts |
class |
|
coder_sniffer/Drupal/Test/Commenting/DocCommentStarUnitTest.1.inc |
|
|
|
|
PostStatementCommentSniff |
class |
Drupal\Sniffs\Commenting |
coder_sniffer/Drupal/Sniffs/Commenting/PostStatementCommentSniff.php |
Largely copied from
\PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\PostStatementCommentSniff
but we want the fixer to move the comment to the previous line. |
|
|
|
PostStatementCommentUnitTest |
class |
Drupal\Sniffs\Commenting |
coder_sniffer/Drupal/Test/Commenting/PostStatementCommentUnitTest.php |
|
|
|
|
PregSecuritySniff |
class |
Drupal\Sniffs\Semantics |
coder_sniffer/Drupal/Sniffs/Semantics/PregSecuritySniff.php |
Check the usage of the preg functions to ensure the insecure /e flag isn't
used: https://www.drupal.org/node/750148 |
|
|
|
PrivateMethodTest |
class |
|
coder_sniffer/DrupalPractice/Test/good/good.php |
|
|
|
|
Project |
class |
DrupalPractice |
coder_sniffer/DrupalPractice/Project.php |
Helper class to retrieve project information like module/theme name for a file. |
|
13 |
|
ProjectUnitTest |
class |
DrupalPractice\ProjectDetection |
coder_sniffer/DrupalPractice/Test/ProjectDetection/ProjectUnitTest.php |
Tests that project and version detection works. |
|
|
|
PropertyDeclarationSniff |
class |
Drupal\Sniffs\Classes |
coder_sniffer/Drupal/Sniffs/Classes/PropertyDeclarationSniff.php |
Laregely copied from
\PHP_CodeSniffer\Standards\PSR2\Sniffs\Classes\PropertyDeclarationSniff to have a fixer
for the var keyword. |
|
|
|
PropertyDeclarationUnitTest |
class |
Drupal\Sniffs\Classes |
coder_sniffer/Drupal/Test/Classes/PropertyDeclarationUnitTest.php |
|
|
|
|
Pum |
class |
|
coder_sniffer/Drupal/Test/Commenting/FileCommentUnitTest.7.inc |
Bla. |
|
|
|
Pum |
class |
Blah |
coder_sniffer/Drupal/Test/Commenting/FileCommentUnitTest.6.inc |
Bla. |
|
|
|
Pum |
trait |
Blah |
coder_sniffer/Drupal/Test/Commenting/FileCommentUnitTest.9.inc |
Bla. |
|
|
|
Pum |
interface |
Blah |
coder_sniffer/Drupal/Test/Commenting/FileCommentUnitTest.8.inc |
Bla. |
|
|
|
Pum |
class |
MyNamespace\Depth |
coder_sniffer/Drupal/Test/Classes/UnusedUseStatementUnitTest.inc |
Bla. |
|
|
|
ReactionRule |
class |
|
coder_sniffer/Drupal/Test/good/good.php |
Example annotation that exceeds 80 characters several times, but is valid. |
|
|
|
RemoteAddressSniff |
class |
Drupal\Sniffs\Semantics |
coder_sniffer/Drupal/Sniffs/Semantics/RemoteAddressSniff.php |
Make sure that the function ip_address() is used instead of
$_SERVER['REMOTE_ADDR']. |
|
|
|
RequiredSniff |
class |
Drupal\Sniffs\InfoFiles |
coder_sniffer/Drupal/Sniffs/InfoFiles/RequiredSniff.php |
"name", "description" and "core are required fields in Drupal info files. Also
checks the "php" minimum requirement for Drupal 7. |
|
|
|
RoutingAccessSniff |
class |
DrupalPractice\Sniffs\Yaml |
coder_sniffer/DrupalPractice/Sniffs/Yaml/RoutingAccessSniff.php |
Checks that there are no undocumented open access callbacks in *.routing.yml files. |
|
|
|
RoutingAccessUnitTest |
class |
DrupalPractice\Sniffs\Yaml |
coder_sniffer/DrupalPractice/Test/Yaml/RoutingAccessUnitTest.php |
|
|
|
|
ScopeClosingBraceSniff |
class |
Drupal\Sniffs\WhiteSpace |
coder_sniffer/Drupal/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php |
Copied from \PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace\ScopeClosingBraceSniff to allow empty methods
and classes. |
|
|
|
ScopeIndentSniff |
class |
Drupal\Sniffs\WhiteSpace |
coder_sniffer/Drupal/Sniffs/WhiteSpace/ScopeIndentSniff.php |
Largely copied from
\PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\ScopeIndentSniff,
modified to make the exact mode working with comments and multi line
statements. |
|
|
|
ScopeIndentUnitTest |
class |
Drupal\Sniffs\WhiteSpace |
coder_sniffer/Drupal/Test/WhiteSpace/ScopeIndentUnitTest.php |
|
|
|
|
ScopeInfo |
class |
DrupalPractice\Sniffs\CodeAnalysis |
coder_sniffer/DrupalPractice/Sniffs/CodeAnalysis/VariableAnalysisSniff.php |
Holds details of a scope. |
|
|
|
SpaceInlineIfSniff |
class |
Drupal\Sniffs\Formatting |
coder_sniffer/Drupal/Sniffs/Formatting/SpaceInlineIfSniff.php |
Checks that there is no space between "?" and ":" inline if/else statements. |
|
|
|
SpaceUnaryOperatorSniff |
class |
Drupal\Sniffs\Formatting |
coder_sniffer/Drupal/Sniffs/Formatting/SpaceUnaryOperatorSniff.php |
\PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceUnaryOperatorSniff. |
|
|
|
SpaceUnaryOperatorUnitTest |
class |
Drupal\Sniffs\Formatting |
coder_sniffer/Drupal/Test/Formatting/SpaceUnaryOperatorUnitTest.php |
|
|
|
|
startsLowerInterface |
interface |
|
coder_sniffer/Drupal/Test/bad/bad.php |
|
|
|
|
TCheckPlainSniff |
class |
DrupalPractice\Sniffs\FunctionCalls |
coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/TCheckPlainSniff.php |
Check that "@" and "%" placeholders in t()/watchdog() are not escaped twice
with check_plain(). |
|
|
|
TCheckPlainUnitTest |
class |
DrupalPractice\Sniffs\FunctionCalls |
coder_sniffer/DrupalPractice/Test/FunctionCalls/TCheckPlainUnitTest.php |
Unit test class for the TCheckPlain sniff. |
|
|
|
Test |
class |
|
coder_sniffer/DrupalPractice/Test/Objects/UnusedPrivateMethodUnitTest.inc |
|
|
|
|
Test |
class |
|
coder_sniffer/Drupal/Test/Semantics/FunctionTUnitTest.inc |
|
|
|
|
Test |
class |
|
coder_sniffer/Drupal/Test/Commenting/InlineCommentUnitTest.inc |
Test class with properties. |
|
|
|
Test |
class |
|
coder_sniffer/Drupal/Test/Commenting/VariableCommentUnitTest.inc |
Test class with properties. |
|
|
|
Test |
class |
Foo\Bar |
coder_sniffer/Drupal/Test/Commenting/DataTypeNamespaceUnitTest.inc |
Test. |
|
|
|
Test |
class |
|
coder_sniffer/Drupal/Test/Commenting/FunctionCommentUnitTest.inc |
Test methods. |
|
|
|
Test |
class |
|
coder_sniffer/Drupal/Test/Commenting/DocCommentAlignmentUnitTest.inc |
Test class with properties. |
|
|
|
Test |
class |
|
coder_sniffer/Drupal/Test/Classes/PropertyDeclarationUnitTest.inc |
Test class with properties. |
|
|
|
Test |
class |
|
coder_sniffer/Drupal/Test/NamingConventions/ValidFunctionNameUnitTest.inc |
|
|
|
|
Test2 |
class |
|
coder_sniffer/Drupal/Test/Commenting/FunctionCommentUnitTest.inc |
Class Test. |
|
|
|
Test2 |
class |
|
coder_sniffer/Drupal/Test/good/good.php |
Test class. |
|
|
|
Test2 |
class |
|
coder_sniffer/Drupal/Test/Classes/ClassCreateInstanceUnitTest.inc |
Test class. |
|
|
|