ConstantNameSniff |
coder_sniffer/Drupal/Sniffs/Semantics/ConstantNameSniff.php |
Checks that constants introduced with define() in module or install files start
with the module's name. |
ConstantNameUnitTest |
coder_sniffer/Drupal/Test/Semantics/ConstantNameUnitTest.php |
|
EmptyInstallSniff |
coder_sniffer/Drupal/Sniffs/Semantics/EmptyInstallSniff.php |
Throws an error if hook_install() or hook_uninstall() definitions are empty. |
FunctionAliasSniff |
coder_sniffer/Drupal/Sniffs/Semantics/FunctionAliasSniff.php |
Checks that no PHP function name aliases are used. |
FunctionCall |
coder_sniffer/Drupal/Sniffs/Semantics/FunctionCall.php |
Helper class to sniff for specific function calls. |
FunctionDefinition |
coder_sniffer/Drupal/Sniffs/Semantics/FunctionDefinition.php |
Helper class to sniff for function definitions. |
FunctionTSniff |
coder_sniffer/Drupal/Sniffs/Semantics/FunctionTSniff.php |
Check the usage of the t() function to not escape translateable strings with back
slashes. Also checks that the first argument does not use string concatenation. |
FunctionTUnitTest |
coder_sniffer/Drupal/Test/Semantics/FunctionTUnitTest.php |
|
FunctionWatchdogSniff |
coder_sniffer/Drupal/Sniffs/Semantics/FunctionWatchdogSniff.php |
Checks that the second argument to watchdog() is not enclosed with t(). |
FunctionWatchdogUnitTest |
coder_sniffer/Drupal/Test/Semantics/FunctionWatchdogUnitTest.php |
|
InstallHooksSniff |
coder_sniffer/Drupal/Sniffs/Semantics/InstallHooksSniff.php |
Checks that hook_disable(), hook_enable(), hook_install(), hook_uninstall(),
hook_requirements() and hook_schema() are not defined in the module file. |
LStringTranslatableSniff |
coder_sniffer/Drupal/Sniffs/Semantics/LStringTranslatableSniff.php |
Checks that string literals passed to l() are translatable. |
PregSecuritySniff |
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 |
RemoteAddressSniff |
coder_sniffer/Drupal/Sniffs/Semantics/RemoteAddressSniff.php |
Make sure that the function ip_address() is used instead of
$_SERVER['REMOTE_ADDR']. |
TInHookMenuSniff |
coder_sniffer/Drupal/Sniffs/Semantics/TInHookMenuSniff.php |
Checks that t() is not used in hook_menu(). |
TInHookSchemaSniff |
coder_sniffer/Drupal/Sniffs/Semantics/TInHookSchemaSniff.php |
Checks that t() is not used in hook_schema(). |