Showing 517 of 517 total issues
Function load_pairlist
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def load_pairlist(
Function price_to_precision
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def price_to_precision(self, pair: str, price: float, *, rounding_mode: int = ROUND) -> float:
Function extract_cost_curr_rate
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def extract_cost_curr_rate(
Function ohlcv
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def ohlcv(
Function validate_backtest_data
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def validate_backtest_data(
Function load_trades
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def load_trades(
Function rename_futures_data
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def rename_futures_data(
Function get_min_pair_stake_amount
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_min_pair_stake_amount(
Function trim_dataframe
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def trim_dataframe(
Function process_removed_setting
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def process_removed_setting(
Function get_funding_fees
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_funding_fees(
Function _get_params
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_params(
Function _args_to_config
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _args_to_config(
Function _get_params
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_params(
Function price_to_precision
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def price_to_precision(
Function _get_params
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_params(
Function process_deprecated_setting
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def process_deprecated_setting(
Function _get_params
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_params(
Function check_conflicting_settings
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def check_conflicting_settings(
Function api_get_backtest
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def api_get_backtest():
"""
Get backtesting result.
Returns Result after backtesting has been ran.
"""
- 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"