autotelik/datashift

View on GitHub
lib/tasks/export.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/export.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.

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

    end # no_commands
Severity: Minor
Found in lib/tasks/export.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

Unnecessary spacing detected.
Open

    class_option :remove_columns,  type: :array, desc: "Don't include this list of supplied fields"
Severity: Minor
Found in lib/tasks/export.thor by rubocop

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"

There are no issues that match your filters.

Category
Status