![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qqmljslinter_p.h>
Classes | |
| class | Plugin |
Public Types | |
| enum | LintResult { FailedToOpen , FailedToParse , HasWarnings , HasErrors , LintSuccess } |
| enum | FixResult { NothingToFix , FixError , FixSuccess } |
Public Member Functions | |
| QQmlJSLinter (const QStringList &importPaths, const QStringList &extraPluginPaths={}, bool useAbsolutePath=false) | |
| LintResult | lintFile (const QString &filename, const QString *fileContents, const bool silent, QJsonArray *json, const QStringList &qmlImportPaths, const QStringList &qmldirFiles, const QStringList &resourceFiles, const QList< QQmlJS::LoggerCategory > &categories, const QQmlJS::HeuristicContextProperties &contextProperties={}) |
| LintResult | lintModule (const QString &uri, const bool silent, QJsonArray *json, const QStringList &qmlImportPaths, const QStringList &resourceFiles) |
| FixResult | applyFixes (QString *fixedCode, bool silent) |
| const QQmlJSLogger * | logger () const |
| std::vector< Plugin > & | plugins () |
| void | setPlugins (std::vector< Plugin > plugins) |
| void | setPluginsEnabled (bool enablePlugins) |
| bool | pluginsEnabled () const |
| void | clearCache () |
Static Public Member Functions | |
| static std::vector< Plugin > | loadPlugins (QStringList paths) |
Definition at line 43 of file qqmljslinter_p.h.
| Enumerator | |
|---|---|
| NothingToFix | |
| FixError | |
| FixSuccess | |
Definition at line 50 of file qqmljslinter_p.h.
| Enumerator | |
|---|---|
| FailedToOpen | |
| FailedToParse | |
| HasWarnings | |
| HasErrors | |
| LintSuccess | |
Definition at line 49 of file qqmljslinter_p.h.
| QQmlJSLinter::QQmlJSLinter | ( | const QStringList & | importPaths, |
| const QStringList & | extraPluginPaths = {}, | ||
| bool | useAbsolutePath = false ) |
Definition at line 144 of file qqmljslinter.cpp.
References QQmlJSLinter().
Referenced by QQmlJSLinter().
| QQmlJSLinter::FixResult QQmlJSLinter::applyFixes | ( | QString * | fixedCode, |
| bool | silent ) |
Definition at line 934 of file qqmljslinter.cpp.
References FixError, FixSuccess, and NothingToFix.
|
inline |
Definition at line 131 of file qqmljslinter_p.h.
| QQmlJSLinter::LintResult QQmlJSLinter::lintFile | ( | const QString & | filename, |
| const QString * | fileContents, | ||
| const bool | silent, | ||
| QJsonArray * | json, | ||
| const QStringList & | qmlImportPaths, | ||
| const QStringList & | qmldirFiles, | ||
| const QStringList & | resourceFiles, | ||
| const QList< QQmlJS::LoggerCategory > & | categories, | ||
| const QQmlJS::HeuristicContextProperties & | contextProperties = {} ) |
Definition at line 544 of file qqmljslinter.cpp.
References LintSuccess.
| QQmlJSLinter::LintResult QQmlJSLinter::lintModule | ( | const QString & | uri, |
| const bool | silent, | ||
| QJsonArray * | json, | ||
| const QStringList & | qmlImportPaths, | ||
| const QStringList & | resourceFiles ) |
Definition at line 774 of file qqmljslinter.cpp.
References LintSuccess.
|
static |
Definition at line 286 of file qqmljslinter.cpp.
|
inline |
Definition at line 120 of file qqmljslinter_p.h.
|
inline |
Definition at line 122 of file qqmljslinter_p.h.
|
inline |
Definition at line 129 of file qqmljslinter_p.h.
Definition at line 126 of file qqmljslinter_p.h.
|
inline |
Definition at line 128 of file qqmljslinter_p.h.