Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-129307

qmllint: implement .qml warnings from qmljsstaticanalysismessage.cpp

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • 6.9
    • 6.8
    • QML: Tooling
    • None

    Description

      Implement warnings in qmlls from QtC's codemodel for .qml files:

       
      done to be done in progress won't do
       

      • UnknownType not in use as warning
      • ErrInvalidEnumValue
      • ErrEnumValueMustBeStringOrNumber
      • ErrNumberValueExpected
      • ErrBooleanValueExpected
      • ErrStringValueExpected
      • ErrInvalidUrl
      • WarnFileOrDirectoryDoesNotExist
      • ErrInvalidColor
      • ErrAnchorLineExpected
      • ErrPropertiesCanOnlyHaveOneBinding
      • ErrIdExpected
      • ErrInvalidId
      • ErrDuplicateId
      • ErrInvalidPropertyName
      • ErrDoesNotHaveMembers
      • ErrInvalidMember
      • WarnAssignmentInCondition
      • WarnCaseWithoutFlowControl
      • WarnEval
      • WarnUnreachable
      • WarnWith
      • WarnComma
      • WarnUnnecessaryMessageSuppression
      • WarnAlreadyFormalParameter
      • WarnAlreadyFunction
      • WarnVarUsedBeforeDeclaration
      • WarnAlreadyVar
      • WarnDuplicateDeclaration
      • WarnFunctionUsedBeforeDeclaration
      • WarnBooleanConstructor
      • WarnStringConstructor
      • WarnObjectConstructor
      • WarnArrayConstructor
      • WarnFunctionConstructor
      • HintAnonymousFunctionSpacing
      • WarnBlock
      • WarnVoid
      • WarnConfusingPluses
      • WarnConfusingMinuses
      • HintDeclareVarsInOneLine
      • HintExtraParentheses
      • MaybeWarnEqualityTypeCoercion
      • WarnConfusingExpressionStatement
      • StateCannotHaveChildItem
      • ErrTypeIsInstantiatedRecursively
      • HintDeclarationsShouldBeAtStartOfFunction
      • HintOneStatementPerLine
      • ErrUnknownComponent
      • ErrCouldNotResolvePrototypeOf
      • ErrCouldNotResolvePrototype
      • ErrPrototypeCycle
      • ErrInvalidPropertyType
      • WarnEqualityTypeCoercion
      • WarnExpectedNewWithUppercaseFunction
      • WarnNewWithLowercaseFunction
      • WarnNumberConstructor
      • HintBinaryOperatorSpacing
      • WarnUnintentinalEmptyBlock
      • HintPreferNonVarPropertyType
      • ErrMissingRequiredProperty
      • ErrObjectValueExpected
      • ErrArrayValueExpected
      • ErrDifferentValueExpected
      • ErrSmallerNumberValueExpected
      • ErrLargerNumberValueExpected
      • ErrMaximumNumberValueIsExclusive
      • ErrMinimumNumberValueIsExclusive
      • ErrInvalidStringValuePattern
      • ErrLongerStringValueExpected
      • ErrShorterStringValueExpected
      • ErrInvalidArrayValueLength
      • ErrHitMaximumRecursion
      • ErrToManyComponentChildren
      • WarnComponentRequiresChildren
      • WarnDuplicateImport
      • ErrAliasReferRoot
      • WarnAliasReferRootHierarchy

      Also, you can find all qtc codemodel warnings in qmljsstaticanalysismessage.cpp's StaticAnalysisMessages::StaticAnalysisMessages() and qmljsstaticanalysismessage.h definition of Type enum (each enum value corresponds to a warning, see also their description in the StaticAnalysisMessages::StaticAnalysisMessages() constructor!)

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              sami.shalayel Sami Shalayel
              sami.shalayel Sami Shalayel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes