qodana.yaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. version: "1.0"
  2. linter: jetbrains/qodana-php:2023.1-eap
  3. failThreshold: 20000
  4. profile:
  5. name: qodana.recommended
  6. exclude:
  7. - name: All
  8. paths:
  9. - dev
  10. - build
  11. - doc
  12. - documents
  13. - node_modules
  14. - test
  15. - htdocs/custom
  16. - htdocs/includes
  17. - htdocs/install/doctemplates
  18. - htdocs/modulebuilder/template/test/phpunit/functionnal
  19. - htdocs/theme/common/fontawesome-5
  20. - name: PhpIssetCanBeReplacedWithCoalesceInspection
  21. - name: PhpRedundantOptionalArgumentInspection
  22. - name: PhpLanguageLevelInspection
  23. - name: PhpIncludeInspection
  24. - name: HtmlWrongAttributeValue
  25. - name: PhpUndefinedClassConstantInspection
  26. - name: RegExpRedundantEscape
  27. - name: PhpUnnecessaryLocalVariableInspection
  28. - name: PhpUnusedParameterInspection
  29. - name: PhpUnusedLocalVariableInspection
  30. - name: PhpTernaryExpressionCanBeReplacedWithConditionInspection
  31. - name: PhpSwitchStatementWitSingleBranchInspection
  32. - name: PhpLoopCanBeReplacedWithImplodeInspection
  33. - name: PhpArrayAccessCanBeReplacedWithForeachValueInspection
  34. - name: PhpArrayPushWithOneElementInspection
  35. - name: PhpCastIsUnnecessaryInspection
  36. - name: PhpDeprecationInspection
  37. - name: PhpStatementHasEmptyBodyInspection
  38. - name: PhpConditionAlreadyCheckedInspection
  39. - name: PhpExpressionResultUnusedInspection
  40. - name: PhpUndefinedClassInspection
  41. - name: RegExpSimplifiable
  42. - name: PhpConcatenationWithEmptyStringCanBeInlinedInspection
  43. - name: PhpConditionCanBeReplacedWithMinMaxCallInspection
  44. - name: PhpArrayIsAlwaysEmptyInspection
  45. - name: PhpParameterByRefIsNotUsedAsReferenceInspection
  46. - name: PhpWrongStringConcatenationInspection
  47. - name: PhpUnusedAliasInspection
  48. - name: PhpUnusedPrivateMethodInspection
  49. - name: PhpUnusedPrivateFieldInspection
  50. - name: PhpExpressionAlwaysNullInspection
  51. - name: PhpIfWithCommonPartsInspection
  52. - name: PhpTernaryExpressionCanBeReducedToShortVersionInspection
  53. - name: PhpExpressionWithSameOperandsInspection
  54. - name: PhpInArrayCanBeReplacedWithComparisonInspection
  55. - name: PhpUnusedAliasInspection
  56. - name: PhpPossiblePolymorphicInvocationInspection
  57. - name: PhpReturnValueOfMethodIsNeverUsedInspection
  58. - name: PhpPregReplaceWithEmptyReplacementInspection
  59. - name: PhpFieldImmediatelyRewrittenInspection
  60. - name: PhpIllegalStringOffsetInspection
  61. - name: PhpWrongForeachArgumentTypeInspection
  62. - name: PhpRegExpRedundantModifierInspection
  63. - name: PhpClassConstantAccessedViaChildClassInspection
  64. - name: RegExpUnnecessaryNonCapturingGroup
  65. - name: PhpPregMatchReplaceWithComparisonInspection
  66. - name: PhpArrayWriteIsNotUsedInspection
  67. - name: PhpUndefinedNamespaceInspection
  68. - name: PhpArraySearchInBooleanContextInspection
  69. - name: PhpLoopCanBeReplacedWithStrRepeatInspection
  70. - name: PhpPropertyOnlyWrittenInspection
  71. - name: PhpCoveredCharacterInClassInspection
  72. - name: PhpSameParameterValueInspection
  73. - name: PhpSillyAssignmentInspection
  74. - name: PhpConditionCheckedByNextConditionInspection
  75. - name: RegExpSingleCharAlternation
  76. - name: PhpSuspiciousNameCombinationInspection
  77. - name: PhpObjectFieldsAreOnlyWrittenInspection
  78. - name: PhpMissingParentConstructorInspection
  79. - name: PhpWriteAccessToReferencedArrayValueWithoutUnsetInspection
  80. - name: PhpArrayUsedOnlyForWriteInspection
  81. - name: PhpArrayIndexImmediatelyRewrittenInspection
  82. - name: PhpParameterNameChangedDuringInheritanceInspection
  83. - name: PhpDuplicateSwitchCaseBodyInspection
  84. - name: PhpNestedDirNameCallsCanBeReplacedWithLevelParameterInspection
  85. - name: PhpPointlessBooleanExpressionInConditionInspection
  86. - name: PhpUndefinedMethodInspection
  87. - name: PhpDuplicateCatchBodyInspection
  88. - name: PhpDefineCanBeReplacedWithConstInspection
  89. - name: PhpMissingParamTypeInspection
  90. - name: PhpMissingReturnTypeInspection
  91. - name: CommaExpressionJS
  92. - name: JSTypeOfValues
  93. - name: PhpRedundantVariableDocTypeInspection
  94. - name: PhpUnhandledExceptionInspection
  95. - name: JSIgnoredPromiseFromCall
  96. - name: DuplicatedCode
  97. - name: BadExpressionStatementJS
  98. - name: PhpRedundantCatchClauseInspection
  99. - name: PhpIssetCanCheckNestedAccessDirectlyInspection
  100. - name: JSEqualityComparisonWithCoercion
  101. - name: JSUnusedAssignment
  102. - name: JSHint
  103. - name: ReservedWordUsedAsNameJS
  104. - name: JSUnusedLocalSymbols
  105. - name: TrivialIfJS
  106. - name: JSJQueryEfficiency
  107. - name: JSDuplicatedDeclaration
  108. - name: JSUnresolvedLibraryURL
  109. - name: UnnecessaryReturnJS
  110. - name: UnreachableCodeJS
  111. - name: JSUnnecessarySemicolon
  112. - name: JSPrimitiveTypeWrapperUsage
  113. - name: PhpFullyQualifiedNameUsageInspection
  114. - name: PhpDocMissingThrowsInspection
  115. - name: UnnecessaryLabelJS
  116. - name: JSCheckFunctionSignatures
  117. - name: JSValidateTypes
  118. - name: PhpReturnDocTypeMismatchInspection
  119. - name: PhpSwitchWithCommonPartsInspection