diff options
author | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2017-10-27 15:00:37 +0200 |
---|---|---|
committer | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2017-10-27 14:03:40 +0000 |
commit | e5959c4bdb187782ca0e55986e8b247eb2f5d724 (patch) | |
tree | 649f20ca1ba1a6c3ba2d8e0f82e6607150262260 /doc | |
parent | 81677fca97c515f3ec9e5a6ac09357f5fadc88be (diff) | |
download | qt-creator-e5959c4bdb187782ca0e55986e8b247eb2f5d724.tar.gz |
Doc: Add links to JSLint Error Explanations
Task-number: QTCREATORBUG-19166
Change-Id: Ia9856529a0bd79450eadb348396f270ebb7d563e
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/editors/creator-editors.qdoc | 63 |
1 files changed, 44 insertions, 19 deletions
diff --git a/doc/src/editors/creator-editors.qdoc b/doc/src/editors/creator-editors.qdoc index 8e49e9665a..28711d4e14 100644 --- a/doc/src/editors/creator-editors.qdoc +++ b/doc/src/editors/creator-editors.qdoc @@ -244,7 +244,8 @@ \section2 List of JavaScript and QML Checks Many of the JavaScript checks are similar to the ones in Douglas Crockford's - \l{http://www.jslint.com}{JSLint} tool. + \l{http://www.jslint.com}{JSLint} tool. For more information about JSLint + errors, see \l{http://linterrors.com/js}{JSLint Error Explanations}. \table \header @@ -311,25 +312,33 @@ \li M10 \li Error \li Duplicate property binding - \li + \li See also: \l{http://linterrors.com/js/duplicate-key-a} + {Duplicate key '{a}'}. \row \li M11 \li Error \li Id expected - \li + \li See also: + \l{http://linterrors.com/js/expected-an-identifier-and-instead-saw-a-a-reserved-word} + {Expected an identifier and instead saw '{a}' (a reserved word)}. \row \li M14 \li Error \li Invalid id - \li + \li See also: + \l{http://linterrors.com/js/expected-an-identifier-and-instead-saw-a-a-reserved-word} + {Expected an identifier and instead saw '{a}' (a reserved word)}. + \row \li M15 \li Error \li Duplicate id \li Ids in a file must be unique. + See also: \l{http://linterrors.com/js/duplicate-key-a} + {Duplicate key '{a}'}. \row \li M16 @@ -369,7 +378,7 @@ \li M23 \li Warning \li Do not use \c eval - \li + \li See also: \l{http://linterrors.com/js/eval-is-evil}{eval is evil}. \row \li M28 @@ -381,7 +390,8 @@ \li M29 \li Warning \li Do not use \c with - \li + \li See also: \l{http://linterrors.com/js/unexpected-with} + {Unexpected 'with'}. \row \li M30 @@ -431,44 +441,51 @@ \li M108 \li Warning \li Function \c name is used before its declaration - \li + \li See also: \l{http://linterrors.com/js/a-was-used-before-it-was-defined} + {{a} was used before it was defined}. \row \li M109 \li Warning \li Do not use \c Boolean as a constructor - \li + \li See also: \l{http://linterrors.com/js/do-not-use-a-as-a-constructor} + {Do not use {a} as a constructor}. \row \li M110 \li Warning \li Do not use \c String as a constructor - \li + \li See also: \l{http://linterrors.com/js/do-not-use-a-as-a-constructor} + {Do not use {a} as a constructor}. \row \li M111 \li Warning \li Do not use \c Object as a constructor - \li + \li See also: \l{http://linterrors.com/js/do-not-use-a-as-a-constructor} + {Do not use {a} as a constructor}. \row \li M112 \li Warning \li Do not use \c Array as a constructor - \li + \li See also: \l{http://linterrors.com/js/do-not-use-a-as-a-constructor} + {Do not use {a} as a constructor}. \row \li M113 \li Warning \li Do not use \c Function as a constructor - \li + \li See also: \l{http://linterrors.com/js/do-not-use-a-as-a-constructor} + {Do not use {a} as a constructor}. \row \li M114 \li Hint \li The \c function keyword and the opening parenthesis should be separated by a single space - \li + \li See also: \l{http://linterrors.com/js/expected-exactly-one-space-between-a-and-b} + {Expected exactly one space between {a} and {b}}. \row \li M115 @@ -488,13 +505,15 @@ \li M117 \li Warning \li Confusing pluses - \li + \li See also: \l{http://linterrors.com/js/confusing-pluses} + {Confusing pluses}. \row \li M119 \li Warning \li Confusing minuses - \li + \li See also: \l{http://linterrors.com/js/confusing-minuses} + {Confusing minuses}. \row \li M121 @@ -536,7 +555,9 @@ \li M201 \li Hint \li Place var declarations at the start of a function - \li + \li See also: + \l{http://linterrors.com/js/move-var-declarations-to-the-top-of-the-function} + {Move 'var' declarations to the top of the function}. \row \li M202 @@ -678,13 +699,15 @@ \li M307 \li Warning \li Use \c new only with functions that start with an uppercase letter - \li + \li See also: \l{http://linterrors.com/js/do-not-use-a-as-a-constructor} + {Do not use {a} as a constructor}. \row \li M308 \li Warning \li Do not use \c Number as a constructor - \li + \li See also: \l{http://linterrors.com/js/do-not-use-a-as-a-constructor} + {Do not use {a} as a constructor}. \row \li M309 @@ -774,7 +797,9 @@ \li M323 \li Error \li \c Number elements expected in array value - \li + \li See also: + \l{http://linterrors.com/js/the-array-literal-notation-is-preferrable} + {The array literal notation [] is preferable}. \row \li M324 |