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
\ingroup qmllint-warnings-and-errors
6
7
\title Invalid qmllint directives
8
\brief [invalid-lint-directive] Invalid qmllint comments.
9
10
\qmllintwarningcategory invalid-lint-directive
11
12
\section1 Invalid qmllint directive provided
13
14
\section2 What happened?
15
You used an invalid \l{qtqml-tooling-qmllint.html#disabling-warnings-inline}{qmllint directive}
16
in a qmllint comment. This is probably due to a typo.
17
18
\section2 Why is this bad?
19
The qmllint directive has no effect.
20
21
\section2 Example
22
\qml
23
import QtQuick
24
25
Item {
26
// qmllint diasble with
27
}
28
29
\endqml
30
To fix this warning, correct the typo:
31
\qml
32
import QtQuick
33
34
Item {
35
// qmllint disable with
36
}
37
\endqml
38
39
\section1 Qmllint directive on unknown category
40
41
\section2 What happened?
42
You used an unknown category in a
43
\l{qtqml-tooling-qmllint.html#disabling-warnings-inline}{qmllint directive}
44
inside a qmllint comment. This is probably due to a typo.
45
46
\section2 Why is this bad?
47
The qmllint directive has no effect.
48
49
\section2 Example
50
\qml
51
import QtQuick
52
53
Item {
54
// qmllint disable woth
55
}
56
57
\endqml
58
To fix this warning, correct the typo:
59
\qml
60
import QtQuick
61
62
Item {
63
// qmllint disable with
64
}
65
\endqml
66
*/
qtdeclarative
src
qml
doc
src
qmllint
invalid-lint-directive.qdoc
Generated on
for Qt by
1.16.1