autotelik/datashift

View on GitHub
lib/tasks/generate.thor

Summary

Maintainability
Test Coverage

Block has too many lines. [28/25]
Open

      ActiveRecord::Base.connection.tables.each do |table|

        modules.each do |m|
          @klass = DataShift::MapperUtils.table_to_arclass(table, m)
          break if(@klass)
Severity: Minor
Found in lib/tasks/generate.thor by rubocop

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

    method_option :additional_headers, aliases: '--add', type: :array, desc: "Add columns to generated template even though they don't exist in DB model methods"
Severity: Minor
Found in lib/tasks/generate.thor by rubocop

Trailing whitespace detected.
Open

    
Severity: Minor
Found in lib/tasks/generate.thor by rubocop

Do not place comments on the same line as the end keyword.
Open

    end # no_commands
Severity: Minor
Found in lib/tasks/generate.thor by rubocop

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

There are no issues that match your filters.

Category
Status