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
max-warnings-exceeded.qdoc
Go to the documentation of this file.
1// Copyright (C) 2026 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 Max warnings exceeded
8\brief [max-warnings-exceeded] A regression on qmllint warnings was detected.
9
10\qmllintwarningcategory max-warnings-exceeded
11
12\section1 Amount of warnings exceeded the limit set by MaxWarnings
13
14\section2 What happened?
15The number of qmllint warnings on a QML file exceeded the threshold set via the
16\c MaxWarnings value in the \l {qmllint#Settings}{qmllint settings file}.
17
18\section2 Why is that bad?
19\c MaxWarnings can be set to control or forbid the introduction of non-clean QML
20code to ensure a certain level of QML code quality. Introducing new qmllint
21warnings in a project decreases the code quality of the project.
22
23To fix this warning,
24\list
25\li Fix the new warnings to decrease the number of total warnings back to the
26 configured threshold.
27\li Increase the number of allowed max warnings via the \l {qmllint#Settings}
28 {qmllint settings file} if fixing the new warnings is not feasible.
29\endlist
30
31*/