Showing 3 of 3 total issues
Method sequence_run_from_starting_point
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def sequence_run_from_starting_point(candidate_plots, plots_range)
starting_point = plots_range[1]
range_type = plots_range[2]
ending_point = plots_range[3]
in_scope = false
- 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 generate_full_path_digest
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def generate_full_path_digest(candidate_plots)
pre_digest = nil
candidate_plots.each do |plot|
parent_digest = plot['parent']
digest = plot['digest']
- 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 play
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def self.play(*args)
RSpec.feature *args do
Dir[SnowyOwl.plots_path].each { |f| require f }
Dir[SnowyOwl.determinations_path].each { |f| require f }
- 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"