-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Expand file tree
/
Copy path.qmllint.ini
More file actions
95 lines (88 loc) · 2.7 KB
/
Copy path.qmllint.ini
File metadata and controls
95 lines (88 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# QGroundControl QML Linting Configuration
# Requires Qt 6.10+ for "error" level support
# See: https://doc.qt.io/qt-6/qtquick-tool-qmllint.html
[General]
DisableDefaultImports=false
MaxWarnings=-1
[Warnings]
# Critical errors that should always be caught
AccessSingletonViaObject=warning
AliasCycle=warning
AssignmentInCondition=warning
BadSignalHandlerParameters=warning
DuplicateEnumEntries=warning
DuplicateImport=warning
DuplicateInlineComponent=warning
DuplicatePropertyBinding=warning
DuplicatedName=warning
# Fast source-only checks lack generated modules. --qml-build promotes these to errors.
ImportFailure=disable
IncompatibleType=warning
InheritanceCycle=warning
# Disabled - QGC custom types have properties not known to qmllint
MissingProperty=disable
MissingType=disable
NonListProperty=warning
ReadOnlyProperty=warning
UncreatableType=warning
UnqualifiedAccess=warning
UnreachableCode=warning
UnresolvedAlias=warning
UnresolvedType=warning
# Warnings that improve code quality
Comma=warning
ComponentChildrenCount=warning
ConfusingExpressionStatement=warning
ConfusingMinuses=warning
ConfusingPluses=warning
Deprecated=warning
EnumEntryMatchesEnum=warning
EnumsAreNotTypes=warning
EqualityTypeCoercion=warning
Eval=warning
InvalidLintDirective=warning
LiteralConstructor=warning
MissingEnumEntry=warning
PreferNonVarProperties=warning
PrefixedImportType=warning
RedundantOptionalChaining=warning
RequiredProperty=warning
RestrictedType=warning
StalePropertyRead=warning
TopLevelComponent=warning
TranslationFunctionMismatch=warning
UnintentionalEmptyBlock=warning
UnterminatedCase=warning
UseProperFunction=warning
VarUsedBeforeDeclaration=warning
WithStatement=warning
# Info-level (non-blocking)
MultilineStrings=info
UnusedImports=info
# Disabled (too noisy or not applicable for QGC)
AttachedPropertyReuse=disable
CompilerWarnings=disable
# QGC uses context properties extensively
ContextProperties=disable
FunctionUsedBeforeDeclaration=disable
ImportFileSelector=disable
LintPluginWarnings=disable
Void=disable
# Qt Quick specific warnings
Quick.Anchors=warning
Quick.AttachedPropertyReuse=disable
Quick.AttachedPropertyType=warning
Quick.Color=warning
Quick.ControlsAttachedPropertyReuse=disable
Quick.ControlsNativeCustomize=warning
Quick.LayoutsPositioning=warning
Quick.PropertyChangesParsed=warning
Quick.StateNoChildItem=warning
Quick.UnexpectedVarType=warning
# Qt Design Studio (not used by QGC)
QtDesignStudio.FunctionsNotSupportedInQmlUi=disable
QtDesignStudio.ImperativeCodeNotEditableInVisualDesigner=disable
QtDesignStudio.InvalidIdeInVisualDesigner=disable
QtDesignStudio.ReferenceToParentItemNotSupportedByVisualDesigner=disable
QtDesignStudio.UnsupportedRootTypeInQmlUi=disable
QtDesignStudio.UnsupportedTypeInQmlUi=disable