xiaohui-zhangxh/editor_js

View on GitHub
lib/editor_js/blocks/checklist_block.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Assignment Branch Condition size for render is too high. [16.28/15]
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'])

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

              html_str = content_tag(:input, nil, type: 'checkbox', disabled: true, checked: item['checked'])

There are no issues that match your filters.

Category
Status