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