Showing 281 of 310 total issues
Method add_to_dependency_graph
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def self.add_to_dependency_graph(object, parents, dependency_graph, pods_to_unlock, added_dependency_strings)
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def initialize(sandbox, podfile, locked_dependencies, sources, specs_updated,
podfile_dependency_cache: Installer::Analyzer::PodfileDependencyCache.from_podfile(podfile),
sources_manager: Config.instance.sources_manager)
Method add_launchscreen_storyboard
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def self.add_launchscreen_storyboard(project, target, group, deployment_target, name = 'App')
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def initialize(sandbox, sandbox_root, pods_project, pod_target_subprojects, umbrella_targets)
Method add_child_vertex_to_graph
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def self.add_child_vertex_to_graph(dependency_string, parents, dependency_graph, pods_to_unlock, added_dependency_strings)
Method add_app_host_main_file
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def self.add_app_host_main_file(project, target, platform, group, name = 'App')
Method add_app_target
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def self.add_app_target(project, platform_name, deployment_target, name = 'App', product_basename = nil)
Method create_generator
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def create_generator(pod_targets_to_generate, aggregate_targets_to_generate, build_configurations, project_object_version, generate_multiple_pod_projects = false)
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def initialize(pod_targets_to_generate, aggregate_targets_to_generate, cache_key_by_target_label,
build_configurations, project_object_version)
Method wire_target_dependencies
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def wire_target_dependencies(pod_target, native_target, project, pod_target_installation_results, metadata_cache)
Method wire_app_native_targets
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def wire_app_native_targets(pod_target, installation_result, pod_target_installation_results, project, metadata_cache)
Method wire_test_native_targets
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def wire_test_native_targets(pod_target, installation_result, pod_target_installation_results, project, metadata_cache)
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def initialize(cache_key_by_target_label = {}, build_configurations = nil, project_object_version = nil, podfile_plugins = {}, installation_options = {})
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def initialize(podfile, sandbox, installation_root, targets, targets_to_integrate, use_input_output_paths: true)
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def initialize(sandbox, build_type, user_build_configurations, archs, platform)
Method create_info_plist_file
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def create_info_plist_file(path, native_target, version, platform, bundle_package_type = :fmwk, additional_entries: {})
Method create_prefix_header
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def create_prefix_header(path, file_accessors, platform, native_target, project_directory)
Method path
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def path(pathname)
if pathname
from_path = config.podfile_path.dirname if config.podfile_path
from_path ||= Pathname.pwd
path = begin
- 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
Method resolve
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def resolve
dependencies = @podfile_dependency_cache.target_definition_list.flat_map do |target|
@podfile_dependency_cache.target_definition_dependencies(target).each do |dep|
next unless target.platform
@platforms_by_dependency[dep].push(target.platform)
- 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
Method _validate_module_map
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def _validate_module_map
if spec.module_map
unless file_accessor.module_map.exist?
error('module_map', 'Unable to find the specified module map file.')
end
- 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"