xiaohui-zhangxh/editor_js

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Do not use parentheses for method calls with no arguments.
Open

            end.join().html_safe
Severity: Minor
Found in lib/editor_js/blocks/table_block.rb by rubocop

This cop checks for unwanted parentheses in parameterless method calls.

Example:

# bad
object.some_method()

# good
object.some_method

Do not use parentheses for method calls with no arguments.
Open

                row.map { |col| content_tag :td, col.html_safe }.join().html_safe
Severity: Minor
Found in lib/editor_js/blocks/table_block.rb by rubocop

This cop checks for unwanted parentheses in parameterless method calls.

Example:

# bad
object.some_method()

# good
object.some_method

Line is too long. [81/80]
Open

                row.map { |col| content_tag :td, col.html_safe }.join().html_safe
Severity: Minor
Found in lib/editor_js/blocks/table_block.rb by rubocop

There are no issues that match your filters.

Category
Status