rambler-digital-solutions/Generamba

View on GitHub
lib/generamba/cli/cli.rb

Summary

Maintainability
A
0 mins
Test Coverage

Tab detected.
Open

    end
Severity: Minor
Found in lib/generamba/cli/cli.rb by rubocop

Tab detected.
Open

    class Application < Thor
Severity: Minor
Found in lib/generamba/cli/cli.rb by rubocop

Trailing whitespace detected.
Open

        
Severity: Minor
Found in lib/generamba/cli/cli.rb by rubocop

Final newline missing.
Open

end
Severity: Minor
Found in lib/generamba/cli/cli.rb by rubocop

Use 2 (not 1) spaces for indentation.
Open

    class Application < Thor
Severity: Minor
Found in lib/generamba/cli/cli.rb by rubocop

This cops checks for indentation that doesn't use the specified number of spaces.

See also the IndentationConsistency cop which is the companion to this one.

Example:

# bad
class A
 def test
  puts 'hello'
 end
end

# good
class A
  def test
    puts 'hello'
  end
end

Example: IgnoredPatterns: ['^\s*module']

# bad
module A
class B
  def test
  puts 'hello'
  end
end
end

# good
module A
class B
  def test
    puts 'hello'
  end
end
end

Tab detected.
Open

        
Severity: Minor
Found in lib/generamba/cli/cli.rb by rubocop

Use nested module/class definitions instead of compact style.
Open

module Generamba::CLI
Severity: Minor
Found in lib/generamba/cli/cli.rb by rubocop

This cop checks the style of children definitions at classes and modules. Basically there are two different styles:

Example: EnforcedStyle: nested (default)

# good
# have each child on its own line
class Foo
  class Bar
  end
end

Example: EnforcedStyle: compact

# good
# combine definitions as much as possible
class Foo::Bar
end

The compact style is only forced for classes/modules with one child.

There are no issues that match your filters.

Category
Status