// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only

/*!
\page qmllint-warnings-and-errors-duplicate-import.html
\ingroup qmllint-warnings-and-errors

\title Duplicate Imports
\brief [duplicate-import] Duplicate import.

\qmllintwarningcategory duplicate-import

\section1 Duplicate import

\section2 What happened?
The document contains duplicate import statements.

\section2 Why is that bad?
They pollute the document unnecessarily and may slow down startup of the app.

\section2 Example

\qml
import QtQuick.Controls
import QtQuick
import QtQuick 2.1 as QQ21
import QtQuick.Controls

Item {

}
\endqml
To fix this warning, remove all but the last duplicated import. Be careful to
not change the order of imports, as it can affect type resolution:
\qml
import QtQuick
import QtQuick 2.1 as QQ21 // different from the previous import
import QtQuick.Controls

Item {

}
\endqml
*/
