[2.0.0-beta1] Reduce code complexity

Created on 11 July 2024, 4 months ago
Updated 4 August 2024, 3 months ago

vendor/bin/phpmd path/to/ui_patterns text codesize is raising those alerts:

ComponentFormatterBase::getComponentSourceContexts()

  • Cyclomatic Complexity of 17. The configured cyclomatic complexity threshold is 10.
  • NPath complexity of 768. The configured NPath complexity threshold is 200.

ComponentStyle::addAjaxGroupTitleOption()

  • Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10.
  • NPath complexity of 1008. The configured NPath complexity threshold is 200.

EntityFieldSourceDeriverBase::getEntityFieldsMetadata()

  • Cyclomatic Complexity of 22. The configured cyclomatic complexity threshold is 10.
  • NPath complexity of 13601. The configured NPath complexity threshold is 200.
  • 130 lines of code. Current threshold is set to 100. Avoid really long methods.

EntityFieldSourceDeriverBase::getDerivativeDefinitions()

  • 113 lines of code. Current threshold is set to 100. Avoid really long methods.

SourcePluginManager::getNativeDefinitionsForPropType()

  • Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10.
  • NPath complexity of 224. The configured NPath complexity threshold is 200.
📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇫🇷France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024