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