Assignment Branch Condition size for find_delim_filename is too high. [33.23/15] Open
def find_delim_filename(delim_type, other_char, suffix = "")
if delim_type == "comma"
filename = params[:model] + params[:id] + suffix + ".csv"
delimiter = ","
elsif delim_type == "space"
- 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
Assignment Branch Condition size for exportdetails is too high. [32.57/15] Open
def exportdetails
@delim_type = params[:delim_type2]
filename, delimiter = find_delim_filename(@delim_type, params[:other_char2], "_Details")
allowed_models = ['Assignment']
- 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
Assignment Branch Condition size for export is too high. [25.73/15] Open
def export
@delim_type = params[:delim_type]
filename, delimiter = find_delim_filename(@delim_type, params[:other_char])
allowed_models = %w[Assignment
- 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
Assignment Branch Condition size for export_advices is too high. [22.16/15] Open
def export_advices
@delim_type = params[:delim_type]
filename, delimiter = find_delim_filename(@delim_type, params[:other_char])
allowed_models = ['Question']
- 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