Add ForceEqualSignAlignment to .rubocop.yml (#1190)

* Add ForceEqualSignAlignment to .rubocop.yml

* Revert ForceEqualSignAlignment cop

* Update method alignment

* Undo addition of whitespace to improve readability

* Fix missing alignment
This commit is contained in:
Alessandro Diogo Brückheimer
2019-10-21 21:18:48 +10:00
committed by Mike Angell
parent 3784020a8d
commit e83b1e4159
67 changed files with 343 additions and 330 deletions
+5 -2
View File
@@ -7,9 +7,11 @@ module Liquid
def initialize(options = {})
@template_options = options ? options.dup : {}
@locale = @template_options[:locale] ||= I18n.new
@locale = @template_options[:locale] ||= I18n.new
@warnings = []
self.depth = 0
self.depth = 0
self.partial = false
end
@@ -20,6 +22,7 @@ module Liquid
def partial=(value)
@partial = value
@options = value ? partial_options : @template_options
@error_mode = @options[:error_mode] || Template.error_mode
end