lib/tasks/export.thor
Block has too many lines. [28/25] Open
Open
ActiveRecord::Base.connection.tables.each do |table|
modules.each do |m|
@klass = DataShift::MapperUtils.table_to_arclass(table, m)
break if(@klass)
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Do not place comments on the same line as the end
keyword. Open
Open
end # no_commands
- Read upRead up
- Exclude checks
This cop checks for comments put on the same line as some keywords.
These keywords are: begin
, class
, def
, end
, module
.
Note that some comments (such as :nodoc:
and rubocop:disable
) are
allowed.
Example:
# bad
if condition
statement
end # end if
# bad
class X # comment
statement
end
# bad
def x; end # comment
# good
if condition
statement
end
# good
class X # :nodoc:
y
end
Unnecessary spacing detected. Open
Open
class_option :remove_columns, type: :array, desc: "Don't include this list of supplied fields"
- Read upRead up
- Exclude checks
This cop checks for extra/unnecessary whitespace.
Example:
# good if AllowForAlignment is true
name = "RuboCop"
# Some comment and an empty line
website += "/bbatsov/rubocop" unless cond
puts "rubocop" if debug
# bad for any configuration
set_app("RuboCop")
website = "https://github.com/bbatsov/rubocop"