From 14c9e077fab91134a98dafb8eb4a00c593aa91a4 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Wed, 12 Oct 2011 11:20:42 +0200 Subject: [PATCH] Doc: checking JavaScript syntax Change-Id: Iad66cc619ed1027389569dea9bfd72bea6399af6 Reviewed-by: Christian Kamm --- doc/src/editors/creator-editors.qdoc | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/doc/src/editors/creator-editors.qdoc b/doc/src/editors/creator-editors.qdoc index cfd8946bcf..4658ce239f 100644 --- a/doc/src/editors/creator-editors.qdoc +++ b/doc/src/editors/creator-editors.qdoc @@ -346,6 +346,41 @@ \endlist + \section1 Checking JavaScript Syntax + + You can run static checks on JavaScript to find common problems, such as: + + \list + + \o Duplicate or conflicting variable, function, and formal parameter + declarations + + \o Variables and functions that are used before they are declared + + \o Possibly unsafe uses of the == or != operators + + \o Comma expressions, except in \c for statements + + \o Expression statements, except function or method calls, assignments, + or \c delete + + \o Assignments within conditions (such as, \c {if (a = b)}) + + \o Case blocks within a switch that do not end with a return, break, + continue, or throw and that are not empty + + \o Nested block statements + + \o \c with statements + + \o \c void expressions + + \endlist + + To run the checks, select \gui {Tools > QML/JS > Run Checks} or press + \key Ctrl+Shift+C. The results are shown in the \gui {QML Analysis} + filter of the \gui {Issues} output pane. + */ -- 2.11.0