# rkh/mustermann

### Showing 23 of 23 total issues

#### Method `converters` has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open

``````    def self.converters(inherited = true)
return @converters ||= {} unless inherited
defaults = superclass.respond_to?(:converters) ? superclass.converters : {}
defaults.merge(converters(false))
end``````

# 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"

#### Method `between` has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open

``````      def between(min, max)
self.convert = proc do |input|
value = yield(input)
value = yield(min) if min and value < yield(min)
value = yield(max) if max and value > yield(max)``````

# 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"

#### Method `read_list` has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open

``````      def read_list(*close, separator: ?,, escape: ?\\, quotes: [?", ?'], ignore: " ", **options)
result = []
while current = getch
element = result.empty? ? result : result.last
case current``````
Found in mustermann/lib/mustermann/ast/parser.rb - About 25 mins to fix

# 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"