Showing 365 of 2,578 total issues
Function info_nodes_to_build
has 11 arguments (exceeds 10 allowed). Consider refactoring. Open
def info_nodes_to_build(self, reference, build_modes, settings=None, options=None, env=None,
Function _expand_node
has 11 arguments (exceeds 10 allowed). Consider refactoring. Open
def _expand_node(self, node, graph, down_reqs, down_ref, down_options, check_updates, update,
Function run
has 11 arguments (exceeds 10 allowed). Consider refactoring. Open
def run(self, command, output=True, cwd=None, win_bash=False, subsystem=None, msys_mingw=True,
Function _create_new_node
has 11 arguments (exceeds 10 allowed). Consider refactoring. Open
def _create_new_node(self, current_node, dep_graph, requirement, check_updates,
Function msvc_build_command
has 11 arguments (exceeds 10 allowed). Consider refactoring. Open
def msvc_build_command(settings, sln_path, targets=None, upgrade_project=True, build_type=None,
Function _load_graph
has 11 arguments (exceeds 10 allowed). Consider refactoring. Open
def _load_graph(self, root_node, check_updates, update, build_mode, remotes,
Function __init__
has 11 arguments (exceeds 10 allowed). Consider refactoring. Open
def __init__(self, ref, package_id, prev, python_requires, options, requires, build_requires,
Function download
has 11 arguments (exceeds 10 allowed). Consider refactoring. Open
def download(conanfile, url, filename, verify=True, retry=None, retry_wait=None,
Function command_line
has a Cognitive Complexity of 22 (exceeds 20 allowed). Consider refactoring. Open
def command_line(self):
if self.generator_platform and not is_generator_platform_supported(self.generator):
raise ConanException('CMake does not support generator platform with generator '
'"%s:. Please check your conan profile to either remove the '
'generator platform, or change the CMake generator.'
- 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 remote
has a Cognitive Complexity of 22 (exceeds 20 allowed). Consider refactoring. Open
def remote(self, *args):
"""
Manages the remote list and the package recipes associated with a remote.
"""
parser = argparse.ArgumentParser(description=self.remote.__doc__,
- 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 _profile_parse_args
has a Cognitive Complexity of 22 (exceeds 20 allowed). Consider refactoring. Open
def _profile_parse_args(settings, options, envs, conf):
""" return a Profile object result of parsing raw data
"""
def _get_tuples_list_from_extender_arg(items):
if not items:
- 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_local_infos_min
has a Cognitive Complexity of 22 (exceeds 20 allowed). Consider refactoring. Open
def _get_local_infos_min(server_store, ref, look_in_all_rrevs):
result = {}
rrevs = server_store.get_recipe_revisions(ref) if look_in_all_rrevs else [None]
- 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 _parse_conanfile
has a Cognitive Complexity of 22 (exceeds 20 allowed). Consider refactoring. Open
def _parse_conanfile(conan_file_path):
""" From a given path, obtain the in memory python import module
"""
if not os.path.exists(conan_file_path):
- 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 update_settings
has a Cognitive Complexity of 22 (exceeds 20 allowed). Consider refactoring. Open
def update_settings(self, new_settings):
"""Mix the specified settings with the current profile.
Specified settings are prioritized to profile"""
assert(isinstance(new_settings, OrderedDict))
- 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 collect_libs
has a Cognitive Complexity of 22 (exceeds 20 allowed). Consider refactoring. Open
def collect_libs(conanfile, folder=None):
if not conanfile.package_folder:
return []
if folder:
lib_folders = [os.path.join(conanfile.package_folder, folder)]
- 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 generate
has a Cognitive Complexity of 22 (exceeds 20 allowed). Consider refactoring. Open
def generate(self):
toolchain_file = self._conanfile.conf.get("tools.cmake.cmaketoolchain:toolchain_file")
if toolchain_file is None: # The main toolchain file generated only if user dont define
save(os.path.join(self._conanfile.generators_folder, self.filename), self.content)
# If we're using Intel oneAPI, we need to generate the environment file and run it
- 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 too many return
statements within this function. Open
return QbsProfile
Avoid too many return
statements within this function. Open
return UNKNOWN_COMPILER
Avoid too many return
statements within this function. Open
return vs or cc or gcc or clang
Avoid too many return
statements within this function. Open
return base