PYSIDE6-QMLLINT(1)

πŸ“¦
version 6.11.2 Β· 2 versions
, in ubuntu stonking

πŸ’– NAME πŸ’–

pyside6-qmllint β€” bestie, it's literally just qmllint, your QML vibe-checker ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

qmllint [options] files

🌸 DESCRIPTION 🌸

Okay so qmllint is the QML syntax verifier and analyzer β€” it reads your QML, checks that it makes sense, and drags it (gently, lovingly) when it doesn't. πŸ’…

πŸŽ€ Warning Levels πŸŽ€

Not me having to explain this three times but here we are β€” all warnings can be set to three levels (plus one bonus level):

  • disable β€” fully disables the warning. Gone. Blocked. Not on my feed. πŸ™ˆ
  • info β€” displays the warning but does not influence the return code. It's just talking. Let it yap. ✨
  • warning β€” displays the warning and leads to a non-zero exit code if more warnings than max-warnings occur. πŸ‘€
  • error β€” displays the warning as an error and leads to a non-zero exit code if encountered. This one's the main character and it's not playing. 😭

πŸ‘‘ OPTIONS πŸ‘‘

🩷 The Basics 🩷

  • -h, --help β€” Displays help on commandline options. Classic.
  • --help-all β€” Displays help, including generic Qt options. The deluxe version. 🌈
  • -v, --version β€” Displays version information. Who am I? πŸͺž
  • -s, --silent β€” Don't output syntax errors. Shhh. 🀫

πŸ”₯ Output & Settings πŸ”₯

  • --json <file> β€” Write output as JSON to file (or use the special filename - to write to stdout). Structured, organized, slay. ✨
  • --write-defaults β€” Writes defaults settings to .qmllint.ini and exits. > ⚠️ Warning: This will overwrite any existing settings and comments! Like, actually gone. No cap. πŸ’€
  • --ignore-settings β€” Ignores all settings files and only takes command line options into consideration. We're doing this raw, bestie. πŸ™ˆ

🧚 Finding Your Files 🧚

  • -M, --module β€” Lint modules instead of files. Plot twist! πŸ‘€
  • --resource <resource> β€” Look for related files in the given resource file.
  • -I, --qmldirs <directory> β€” Look for QML modules in specified directory.
  • -E β€” Use the QML_IMPORT_PATH environment variable to look for QML Modules. Env var girlies rise up. πŸ’œ
  • --bare β€” Do not include default import directories or the current directory. This may be used to run qmllint on a project using a different Qt version. Minimalist queen. πŸŽ€
  • -i, --qmltypes <qmldirs> β€” Import the specified qmldir files. By default, the qmldir file found in the current directory is used if present. If no qmldir file is found, but qmltypes files are, those are imported instead. When this option is set, you have to explicitly add the qmldir or any qmltypes files in the current directory if you want it to be used. Importing qmltypes files without their corresponding qmldir file is inadvisable. πŸ‘€

πŸ’… Fixing Things πŸ’…

  • -f, --fix β€” Automatically apply fix suggestions. It's giving personal stylist. ✨
  • --dry-run β€” Only print out the contents of the file after fix suggestions without applying them. Also prints the settings file that would be used for this instance. Look, don't touch. 🫢

πŸ”Œ Plugins πŸ”Œ

  • --list-plugins β€” List all available plugins. Roll call! πŸ“’
  • -D, --disable-plugins <plugins> β€” List of qmllint plugins to disable (all to disable all plugins).
  • -P, --plugin-paths <directory> β€” Look for qmllint plugins in specified directory.

🌈 Warnings About Warnings 🌈

  • -W, --max-warnings <count> β€” Exit with an error code if more than count many warnings are found by qmllint. By default or if count is -1, warnings do not cause qmllint to return with an error exit code. Your tolerance level, your rules. πŸ’…

⭐ The Warning Flags ⭐

Every single one takes a <level>, and unless it says otherwise the default is warning:

  • --access-singleton-via-object <level> β€” Warn if a singleton is accessed via an object (default: warning)
  • --alias-cycle <level> β€” Warn about alias cycles (default: warning)
  • --assignment-in-condition <level> β€” Warn about using assignment in conditions. (default: warning)
  • --comma <level> β€” Warn about using comma expressions. (default: warning)
  • --component-children-count <level> β€” Warn about Components that don't have exactly one child (default: warning)
  • --confusing-expression-statement <level> β€” Warn about expression statement that has no obvious effect. (default: warning)
  • --confusing-minuses <level> β€” Warn about confusing minuses. (default: warning)
  • --confusing-pluses <level> β€” Warn about confusing pluses. (default: warning)
  • --context-properties <level> β€” Warn about using context properties. (default: warning)
  • --enums-are-not-types <level> β€” Warn about the use of enumerations as types. (default: warning)
  • --equality-type-coercion <level> β€” Warn about coercions due to usages of == and != (default: warning)
  • --deprecated <level> β€” Warn about deprecated properties and types (default: warning)
  • --duplicate-enum-entries <level> β€” Warn about duplicate enum entries (default: warning)
  • --duplicate-import <level> β€” Warn about duplicate imports (default: warning)
  • --duplicate-inline-component <level> β€” Warn about duplicate inline components (default: warning)
  • --duplicate-property-binding <level> β€” Warn about duplicate property bindings (default: warning)
  • --duplicated-name <level> β€” Warn about duplicated property/signal names (default: warning)
  • --enum-entry-matches-enum <level> β€” Warn about enum entries named the same as the enum itself (default: warning)
  • --eval <level> β€” Warn about uses of eval() (default: warning)
  • --import <level> β€” Warn about failing imports and deprecated qmltypes (default: warning)
  • --incompatible-type <level> β€” Warn about incompatible types (default: warning)
  • --inheritance-cycle <level> β€” Warn about inheritance cycles (default: warning)
  • --invalid-lint-directive <level> β€” Warn if an invalid qmllint comment is found (default: warning)
  • --literal-constructor <level> β€” Warn about using literal constructors, like Boolean or String for example. (default: warning)
  • --missing-enum-entry <level> β€” Warn about using missing enum values. (default: warning)
  • --missing-property <level> β€” Warn about missing properties (default: warning)
  • --missing-type <level> β€” Warn about missing types (default: warning)
  • --multiline-strings <level> β€” Warn about multiline strings (default: info) πŸ‘€
  • --non-list-property <level> β€” Warn about non-list properties (default: warning)
  • --non-root-enum <level> β€” Warn about enums defined outside the root component (default: warning)
  • --property-override <level> β€” Warn about wrongly overriding properties from a base class (default: warning)
  • --unterminated-case <level> β€” Warn about non-empty case blocks that are not terminated by control flow or by a fallthrough comment (default: warning)
  • --prefer-non-var-properties <level> β€” Warn about var properties that could use a more specific type (default: warning)
  • --prefixed-import-type <level> β€” Warn about prefixed import types (default: warning)
  • --read-only-property <level> β€” Warn about writing to read-only properties (default: warning)
  • --redundant-optional-chaining <level> β€” Warn about optional chaining on non-voidable and non-nullable base (default: warning)
  • --required <level> β€” Warn about required properties (default: warning)
  • --signal-handler-parameters <level> β€” Warn about bad signal handler parameters (default: warning)
  • --stale-property-read <level> β€” Warn about bindings reading non-constant and non-notifiable properties (default: warning)
  • --top-level-component <level> β€” Warn if a top level Component is encountered (default: warning)
  • --translation-function-mismatch <level> β€” Warn about usages of ID and non-ID translation functions in the same file. (default: warning)
  • --uncreatable-type <level> β€” Warn if uncreatable types are created (default: warning)
  • --unintentional-empty-block <level> β€” Warn about bindings that contain only an empty block (default: warning)
  • --unqualified <level> β€” Warn about unqualified identifiers and how to fix them (default: warning)
  • --unreachable-code <level> β€” Warn about unreachable code. (default: warning)
  • --unresolved-alias <level> β€” Warn about unresolved aliases (default: warning)
  • --unresolved-type <level> β€” Warn about unresolved types (default: warning)
  • --unused-imports <level> β€” Warn about unused imports (default: info) πŸ‘€
  • --var-used-before-declaration <level> β€” Warn if a variable is used before declaration (default: warning)
  • --with <level> β€” Warn about with statements as they can cause false positives when checking for unqualified access (default: warning)

🎨 QtDesignStudio Plugin Warnings 🎨

  • --QtDesignStudio.FunctionsNotSupportedInQmlUi <level> β€” Warn about unsupported function calls in ui.qml files (default: warning)
  • --QtDesignStudio.ReferenceToParentItemNotSupportedByVisualDesigner <level> β€” Warn about references to the parent of a root Component in ui.qml files (default: warning)
  • --QtDesignStudio.ImperativeCodeNotEditableInVisualDesigner <level> β€” Warn about unwanted assignments ui.qml files (default: warning)
  • --QtDesignStudio.UnsupportedTypeInQmlUi <level> β€” Warn about unsupported types in ui.qml files (default: warning)
  • --QtDesignStudio.InvalidIdeInVisualDesigner <level> β€” Warn about ambiguous id names in ui.qml files (default: warning)
  • --QtDesignStudio.UnsupportedRootTypeInQmlUi <level> β€” Warn about unsupported root types in ui.qml files (default: warning)

πŸ¦‹ Quick Plugin Warnings πŸ¦‹

  • --Quick.layout-positioning <level> β€” Warn about using the wrong kind of positioning in layouts (default: warning)
  • --Quick.attached-property-type <level> β€” Warn about attached properties being used in the wrong type (default: warning)
  • --Quick.anchor-combinations <level> β€” Warn about invalid anchor combinations (default: warning)
  • --Quick.controls-native-customize <level> β€” Warn about unsupported customizing of native controls (default: warning)
  • --Quick.unexpected-var-type <level> β€” Warn about incompatible types being set on var properties (default: warning)
  • --Quick.property-changes-parsed <level> β€” Warn about legacy PropertyChanges that rely on the custom parser (default: warning)
  • --Quick.color <level> β€” Warn about invalid color values. (default: warning)
  • --Quick.state-no-child-item <level> β€” Warn about State Objects that have illegal child items (default: warning)

πŸ“ Arguments πŸ“

  • files β€” list of qml or js files to verify. Give me the goods bestie 🫢

pyside6-qmllint 6.11 β€” September 2026 β€” PYSIDE6-QMLLINT(1)

and that's the whole page, bestie πŸ’– go lint something and be iconic βœ¨πŸ‘‘

πŸ“¦ where this page comes from