lib/screenshot.rb
Assignment Branch Condition size for generate_theme_image is too high. [34.01/15] Open
Open
def generate_theme_image(builder)
if File.exist? target_file
builder.say_status :exists, theme.type + ' ' + theme.name + ' ' + theme.shade, :blue
return
end
- Read upRead up
- 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. [13/10] Open
Open
def generate_theme_image(builder)
if File.exist? target_file
builder.say_status :exists, theme.type + ' ' + theme.name + ' ' + theme.shade, :blue
return
end
- Read upRead up
- 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.