app/helpers/application_helper.rb
Method has too many lines. [8/7] (https://github.com/bbatsov/ruby-style-guide#short-methods) Open
Open
def bootstrap_class_for flash_type
case flash_type
when 'warning'
'alert-warning'
when 'notice', 'success'
- 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.