Showing 1,842 of 1,842 total issues
Function verify_challenge_transaction_threshold
has 7 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def verify_challenge_transaction_threshold(
Function __init__
has 7 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def __init__(
Function append_path_payment_strict_receive_op
has 7 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def append_path_payment_strict_receive_op(
Function append_path_payment_strict_send_op
has 7 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def append_path_payment_strict_send_op(
Function __init__
has 7 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 7 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 7 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def __init__(
Function trade_aggregations
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def trade_aggregations(
Function __init__
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def __init__(
Function append_manage_buy_offer_op
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def append_manage_buy_offer_op(
Function __init__
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def __init__(
Function trade_aggregations
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def trade_aggregations(
Function append_liquidity_pool_deposit_op
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def append_liquidity_pool_deposit_op(
Function trade_aggregations
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def trade_aggregations(
Function verify_challenge_transaction_signers
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def verify_challenge_transaction_signers(
Function __init__
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def __init__(
Function append_manage_sell_offer_op
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def append_manage_sell_offer_op(
Function __init__
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
def __init__(
Function from_xdr_object
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def from_xdr_object(
cls, xdr_object: stellar_xdr.ClaimPredicate
) -> "ClaimPredicate":
claim_predicate_type = xdr_object.type
if (
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"