lib/generamba/cli/cli.rb
Tab detected. Open
Open
end
- Exclude checks
Tab detected. Open
Open
class Application < Thor
- Exclude checks
Trailing whitespace detected. Open
Open
- Exclude checks
Final newline missing. Open
Open
end
- Exclude checks
Use 2 (not 1) spaces for indentation. Open
Open
class Application < Thor
- Read upRead up
- Exclude checks
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
Open
- Exclude checks
Use nested module/class definitions instead of compact style. Open
Open
module Generamba::CLI
- Read upRead up
- Exclude checks
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.