app/models/turn.rb
Inconsistent indentation detected. Open
Open
has_and_belongs_to_many :users
- Read upRead up
- Exclude checks
This cops checks for inconsistent indentation.
Example:
class A
def test
puts 'hello'
puts 'world'
end
end
Tab detected. Open
Open
validates :end_date, presence: true
- Exclude checks
Inconsistent indentation detected. Open
Open
belongs_to :assignment
- Read upRead up
- Exclude checks
This cops checks for inconsistent indentation.
Example:
class A
def test
puts 'hello'
puts 'world'
end
end
Tab detected. Open
Open
validates_with TurnValidator
- Exclude checks
Use 2 (not 1) spaces for indentation. Open
Open
validates :start_date, presence: true
- 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
validates :start_date, presence: true
- Exclude checks