card/lib/cardio/generators.rb
Assignment Branch Condition size for help is too high. [19.03/15] Open
Open
def help command="generate"
caller = Cardio::Command.bin_name
puts "Usage:"
puts " #{caller} #{command} GENERATOR [args] [options]".green
puts
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric
Method has too many lines. [17/15] Open
Open
def help command="generate"
caller = Cardio::Command.bin_name
puts "Usage:"
puts " #{caller} #{command} GENERATOR [args] [options]".green
puts
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.