diff --git a/coder_sniffer/Drupal/Sniffs/Array/ArraySniff.php b/coder_sniffer/Drupal/Sniffs/Array/ArraySniff.php index 722e6b0..a2c7f8e 100644 --- a/coder_sniffer/Drupal/Sniffs/Array/ArraySniff.php +++ b/coder_sniffer/Drupal/Sniffs/Array/ArraySniff.php @@ -84,7 +84,7 @@ class Drupal_Sniffs_Array_ArraySniff implements PHP_CodeSniffer_Sniff $comma2 = $phpcsFile->findNext(T_COMMA, ($comma1 + 1), $tokens[$stackPtr]['parenthesis_closer']); if ($comma2 !== false) { $error = 'If the line declaring an array spans longer than 80 characters, each element should be broken into its own line'; - $phpcsFile->addError($error, $stackPtr, 'LongLineDeclaration'); + // $phpcsFile->addError($error, $stackPtr, 'LongLineDeclaration'); } } } diff --git a/coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php b/coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php index a60f9c0..3650c24 100644 --- a/coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php +++ b/coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php @@ -294,7 +294,7 @@ class Drupal_Sniffs_Commenting_FunctionCommentSniff implements PHP_CodeSniffer_S $phpcsFile->addError($error, $tag, 'InvalidThrows'); } else if ($comment === null) { $error = 'Comment missing for @throws tag in function comment'; - $phpcsFile->addError($error, $tag, 'EmptyThrows'); + // $phpcsFile->addError($error, $tag, 'EmptyThrows'); } else { // Any strings until the next tag belong to this comment. if (isset($tokens[$commentStart]['comment_tags'][($pos + 1)]) === true) { diff --git a/coder_sniffer/Drupal/Sniffs/Semantics/InstallTSniff.php b/coder_sniffer/Drupal/Sniffs/Semantics/InstallTSniff.php index 00b2778..ae27afe 100644 --- a/coder_sniffer/Drupal/Sniffs/Semantics/InstallTSniff.php +++ b/coder_sniffer/Drupal/Sniffs/Semantics/InstallTSniff.php @@ -65,7 +65,7 @@ class Drupal_Sniffs_Semantics_InstallTSniff extends Drupal_Sniffs_Semantics_Func && $tokens[$opener]['code'] === T_OPEN_PARENTHESIS ) { $error = 'Do not use t() or st() in installation phase hooks, use $t = get_t() to retrieve the appropriate localization function name'; - $phpcsFile->addError($error, $string, 'TranslationFound'); + // $phpcsFile->addError($error, $string, 'TranslationFound'); } }