forked from qt-creator/qt-creator
qmljs: correct error level for M127
Lint message M127 (Expression statements should be assignments, calls or delete expression only) is a warning and not an error. Task-number: QTCREATORBUG-19534 Change-Id: Iff93cd77582c28f4160fe7a8dec42f19c22436cb Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -155,7 +155,7 @@ StaticAnalysisMessages::StaticAnalysisMessages()
|
|||||||
tr("Unnecessary parentheses."));
|
tr("Unnecessary parentheses."));
|
||||||
newMsg(MaybeWarnEqualityTypeCoercion, MaybeWarning,
|
newMsg(MaybeWarnEqualityTypeCoercion, MaybeWarning,
|
||||||
tr("== and != may perform type coercion, use === or !== to avoid it."));
|
tr("== and != may perform type coercion, use === or !== to avoid it."));
|
||||||
newMsg(WarnConfusingExpressionStatement, Error,
|
newMsg(WarnConfusingExpressionStatement, Warning,
|
||||||
tr("Expression statements should be assignments, calls or delete expressions only."));
|
tr("Expression statements should be assignments, calls or delete expressions only."));
|
||||||
newMsg(HintDeclarationsShouldBeAtStartOfFunction, Hint,
|
newMsg(HintDeclarationsShouldBeAtStartOfFunction, Hint,
|
||||||
tr("Place var declarations at the start of a function."));
|
tr("Place var declarations at the start of a function."));
|
||||||
|
|||||||
Reference in New Issue
Block a user