Showing 2 of 6 total issues
Method pathmap
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def pathmap(spec = nil, &block)
return self if spec.nil?
result = +''
# noinspection SpellCheckingInspection
spec.scan(/%\{[^}]*\}-?\d*[sdpfnxX%]|%-?\d+d|%.|[^%]+/) do |frag|
Avoid too many return
statements within this method. Open
Open
return type[processor.(pathname)] if processor?