app/controllers/notifications_controller.rb
Assignment Branch Condition size for create is too high. [17.58/15] Open
Open
def create
if params[:notification] && (warn_for_special_chars(params[:notification][:subject], "Subject") ||
warn_for_special_chars(params[:notification][:description], "Description"))
redirect_back
return
- 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