app/models/ninetails/container.rb
Assignment Branch Condition size for build_revision_from_params is too high. [22.23/20] Open
Open
def build_revision_from_params(params)
params = params.to_h.convert_keys.with_indifferent_access
self.revision = revisions.build(
message: params[:message],
project_id: params[:project_id],
- 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