lib/editor_js/blocks/checklist_block.rb
Assignment Branch Condition size for render is too high. [16.28/15] Wontfix
Wontfix
def render(_options = {})
content_tag :div, class: css_name do
data['items'].map do |item|
content_tag(:div, class: css_name('__warrper')) do
html_str = content_tag(:input, nil, type: 'checkbox', disabled: true, checked: item['checked'])
- 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
Line is too long. [109/80] Wontfix
Wontfix
html_str = content_tag(:input, nil, type: 'checkbox', disabled: true, checked: item['checked'])
- Exclude checks