fix(lark): verify provider-normalized Card 2.0 callbacks - #4375
Quality Gate failed
Failed conditions
78.2% Coverage on New Code (required ≥ 80%)
Annotations
Check failure on line 106 in loopx/extensions/lark/event_collector_runtime.py
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=huangruiteng_loopx&issues=AaCfY6yFSQ3tuMegsiOj&open=AaCfY6yFSQ3tuMegsiOj&pullRequest=4375
Check failure on line 132 in loopx/extensions/lark/goal_channel_message_delivery.py
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=huangruiteng_loopx&issues=AaCfY6K7SQ3tuMegsiOh&open=AaCfY6K7SQ3tuMegsiOh&pullRequest=4375
Check failure on line 211 in loopx/extensions/lark/goal_channel_message_delivery.py
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=huangruiteng_loopx&issues=AaCfOe0JxzGKX92LpNEm&open=AaCfOe0JxzGKX92LpNEm&pullRequest=4375
Check warning on line 991 in tests/extensions/test_lark_goal_channel_operation.py
sonarqubecloud / SonarCloud Code Analysis
Refactor this exception test to have only one invocation possibly throwing an exception.
See more on https://sonarcloud.io/project/issues?id=huangruiteng_loopx&issues=AaCfOfROxzGKX92LpNEn&open=AaCfOfROxzGKX92LpNEn&pullRequest=4375
Check failure on line 136 in loopx/extensions/lark/event_collector_runtime.py
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "card.action.trigger" 3 times.
See more on https://sonarcloud.io/project/issues?id=huangruiteng_loopx&issues=AaCfY6yFSQ3tuMegsiOi&open=AaCfY6yFSQ3tuMegsiOi&pullRequest=4375
Check failure on line 172 in loopx/extensions/lark/goal_channel_message_delivery.py
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 25 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=huangruiteng_loopx&issues=AaCfOe0JxzGKX92LpNEl&open=AaCfOe0JxzGKX92LpNEl&pullRequest=4375