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. |
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. |
FunctionTriggerErrorSniff |
coder_sniffer/Drupal/Sniffs/Semantics/FunctionTriggerErrorSniff.php |
Checks that the trigger_error deprecation text message adheres to standards. |
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. |
FunctionWatchdogSniff |
coder_sniffer/Drupal/Sniffs/Semantics/FunctionWatchdogSniff.php |
Checks that the second argument to watchdog() is not enclosed with t(). |
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 ip_address() or Drupal::request()->getClientIp() 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(). |