self::LINT_NAMING_CONVENTIONS
=> ArcanistLintSeverity::SEVERITY_WARNING,
self::LINT_PREG_QUOTE_MISUSE
- => ArcanistLintSeverity::SEVERITY_WARNING,
+ => ArcanistLintSeverity::SEVERITY_ADVICE,
self::LINT_BRACE_FORMATTING
=> ArcanistLintSeverity::SEVERITY_WARNING,
self::LINT_PARENTHESES_SPACING
$this->raiseLintAtNode(
$call,
self::LINT_PREG_QUOTE_MISUSE,
- 'You should always pass two arguments to preg_quote(), so that ' .
- 'preg_quote() knows which delimiter to escape.');
+ 'If you use pattern delimiters that require escaping (such as //, '.
+ 'but not ()) then you should pass two arguments to preg_quote(), '.
+ 'so that preg_quote() knows which delimiter to escape.');
}
}
}
}
~~~~~~~~~~
-warning:4:3 Wrong number of arguments to preg_quote()
-warning:6:3 Wrong number of arguments to preg_quote()
+advice:4:3 Wrong number of arguments to preg_quote()
+advice:6:3 Wrong number of arguments to preg_quote()