Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
invalid-lint-directive.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2023 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4
/*!
5
\page qmllint-warnings-and-errors-invalid-lint-directive.html
6
\ingroup qmllint-warnings-and-errors
7
8
\title Invalid qmllint directives
9
\brief [invalid-lint-directive] Invalid qmllint comments.
10
11
\qmllintwarningcategory invalid-lint-directive
12
13
\section1 Invalid qmllint directive provided
14
15
\section2 What happened?
16
You used an invalid \l{qtqml-tooling-qmllint.html#disabling-warnings-inline}{qmllint directive}
17
in a qmllint comment. This is probably due to a typo.
18
19
\section2 Why is this bad?
20
The qmllint directive has no effect.
21
22
\section2 Example
23
\qml
24
import QtQuick
25
26
Item {
27
// qmllint diasble with
28
}
29
30
\endqml
31
To fix this warning, correct the typo:
32
\qml
33
import QtQuick
34
35
Item {
36
// qmllint disable with
37
}
38
\endqml
39
40
\section1 Qmllint directive on unknown category
41
42
\section2 What happened?
43
You used an unknown category in a
44
\l{qtqml-tooling-qmllint.html#disabling-warnings-inline}{qmllint directive}
45
inside a qmllint comment. This is probably due to a typo.
46
47
\section2 Why is this bad?
48
The qmllint directive has no effect.
49
50
\section2 Example
51
\qml
52
import QtQuick
53
54
Item {
55
// qmllint disable woth
56
}
57
58
\endqml
59
To fix this warning, correct the typo:
60
\qml
61
import QtQuick
62
63
Item {
64
// qmllint disable with
65
}
66
\endqml
67
*/
qtdeclarative
src
qml
doc
src
qmllint
invalid-lint-directive.qdoc
Generated on
for Qt by
1.14.0