Showing 516 of 516 total issues
Function _throttle
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def _throttle(
Function merge_features
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def merge_features(
Function _exit_trade
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def _exit_trade(
Function _get_exit_for_signal
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def _get_exit_for_signal(
Function _get_results_dict
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def _get_results_dict(
Avoid deeply nested control flow statements. Open
if not self.current_analysis.false_indicators.__contains__(col_name[0]):
self.current_analysis.false_indicators.append(col_name[0])
logger.info(
f"=> found look ahead bias in indicator "
f"{col_name[0]}. "
Function hyperopt_loss_function
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def hyperopt_loss_function(
Function _process_exit_order
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def _process_exit_order(
Function _params_update_for_json
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def _params_update_for_json(result_dict, params, non_optimized, space: str) -> None:
if (space in params) or (space in non_optimized):
space_params = HyperoptTools._space_params(params, space)
space_non_optimized = HyperoptTools._space_params(non_optimized, space)
all_space_params = space_params
- 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"
Further reading
Avoid deeply nested control flow statements. Open
if indicator not in self.dict_recursive:
self.dict_recursive[indicator] = {}
Function extract_data_and_train_model
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def extract_data_and_train_model(
Function get_ui_download_url
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def get_ui_download_url(version: Optional[str] = None) -> Tuple[str, str]:
base_url = "https://api.github.com/repos/freqtrade/frequi/"
# Get base UI Repo path
resp = requests.get(f"{base_url}releases", timeout=req_timeout)
- 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"
Further reading
Function clean_ohlcv_dataframe
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def clean_ohlcv_dataframe(
Function _download_pair_history
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def _download_pair_history(
pair: str,
*,
datadir: Path,
exchange: Exchange,
- 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"
Further reading
Function _get_params
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def _get_params(
Function _validate_pairdata
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def _validate_pairdata(
Function _check_empty_df
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def _check_empty_df(
Function ohlcv_to_dataframe
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def ohlcv_to_dataframe(
Function print_results
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def print_results(
Function refresh_latest_ohlcv
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def refresh_latest_ohlcv(