![]() |
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 |
| struct | Result |
Public Types | |
| enum | LintResult { FailedToOpen , FailedToParse , HasWarnings , HasErrors , LintSuccess } |
| enum | LintOption : quint8 { Silent = 1 , GenerateJson = 2 } |
| enum | FixResult { NothingToFix , FixError , FixSuccess } |
Public Member Functions | |
| QQmlJSLinter (const QStringList &importPaths, const QStringList &extraPluginPaths={}, bool useAbsolutePath=false) | |
| Q_DECLARE_FLAGS (LintOptions, LintOption) | |
| Result | lintFileInBatch (const QString &filename) |
| bool | prepareFileForBatchLinting (const QString &filename, const QString *fileContents, LintOptions options, const QStringList &qmlImportPaths, const QStringList &qmldirFiles, const QStringList &resourceFiles, const QList< QQmlJS::LoggerCategory > &categoriescategories, qsizetype maxWarnings) |
| Result | lintModule (const QString &uri, LintOptions options, const QStringList &qmlImportPaths, const QStringList &resourceFiles, qsizetype maxWarnings) |
| std::vector< Plugin > & | plugins () |
| void | setPlugins (std::vector< Plugin > plugins) |
| void | setPluginsEnabled (bool enablePlugins) |
| bool | pluginsEnabled () const |
| bool | useAbsolutePath () const |
| void | clearCache () |
Static Public Member Functions | |
| static std::vector< Plugin > | loadPlugins (QStringList pathspaths) |
| static FixResult | applyFixes (const QQmlJSLogger *logger, QString *fixedCode, bool silent) |
Protected Attributes | |
| QQmlJSImporter | m_importer |
Definition at line 44 of file qqmljslinter_p.h.
| Enumerator | |
|---|---|
| NothingToFix | |
| FixError | |
| FixSuccess | |
Definition at line 56 of file qqmljslinter_p.h.
| enum QQmlJSLinter::LintOption : quint8 |
| Enumerator | |
|---|---|
| Silent | |
| GenerateJson | |
Definition at line 51 of file qqmljslinter_p.h.
| Enumerator | |
|---|---|
| FailedToOpen | |
| FailedToParse | |
| HasWarnings | |
| HasErrors | |
| LintSuccess | |
Definition at line 50 of file qqmljslinter_p.h.
| QQmlJSLinter::QQmlJSLinter | ( | const QStringList & | importPaths, |
| const QStringList & | extraPluginPaths = {}, | ||
| bool | useAbsolutePath = false ) |
Definition at line 183 of file qqmljslinter.cpp.
References QQmlJSLinter().
Referenced by QQmlJSLinter().
|
static |
Definition at line 1069 of file qqmljslinter.cpp.
References FixError, FixSuccess, and NothingToFix.
|
inline |
Definition at line 148 of file qqmljslinter_p.h.
| QQmlJSLinter::Result QQmlJSLinter::lintFileInBatch | ( | const QString & | filename | ) |
Definition at line 643 of file qqmljslinter.cpp.
References FailedToOpen, and GenerateJson.
| QQmlJSLinter::Result QQmlJSLinter::lintModule | ( | const QString & | uri, |
| LintOptions | options, | ||
| const QStringList & | qmlImportPaths, | ||
| const QStringList & | resourceFiles, | ||
| qsizetype | maxWarnings ) |
Definition at line 900 of file qqmljslinter.cpp.
References GenerateJson, LintSuccess, and QQmlJSLinter::Result::status.
|
static |
Definition at line 327 of file qqmljslinter.cpp.
|
inline |
Definition at line 138 of file qqmljslinter_p.h.
|
inline |
Definition at line 145 of file qqmljslinter_p.h.
| bool QQmlJSLinter::prepareFileForBatchLinting | ( | const QString & | dirtyFilename, |
| const QString * | fileContents, | ||
| LintOptions | options, | ||
| const QStringList & | qmlImportPaths, | ||
| const QStringList & | qmldirFiles, | ||
| const QStringList & | resourceFiles, | ||
| const QList< QQmlJS::LoggerCategory > & | categories, | ||
| qsizetype | maxWarnings ) |
Returns false on already-populated files.
Set up the scope of a file to lazy-load via LinterVisitor. Returns true on success and false if the scope already was populated. Retrieve lint results via QQmlJSLinter::lintFileInBatch().
Definition at line 575 of file qqmljslinter.cpp.
| QQmlJSLinter::Q_DECLARE_FLAGS | ( | LintOptions | , |
| LintOption | ) |
Definition at line 142 of file qqmljslinter_p.h.
|
inline |
Definition at line 144 of file qqmljslinter_p.h.
|
inline |
Definition at line 146 of file qqmljslinter_p.h.
|
protected |
Definition at line 165 of file qqmljslinter_p.h.