lib/tasks/generate.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.
Line is too long. [161/140] Open
Open
method_option :additional_headers, aliases: '--add', type: :array, desc: "Add columns to generated template even though they don't exist in DB model methods"
- Exclude checks
Trailing whitespace detected. Open
Open
- Exclude checks
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