Fix all Layout/SpaceAroundOperators rubocop issues and remove file list from rubocop_todo list
This commit is contained in:
@@ -205,8 +205,8 @@ class Budget
|
||||
end
|
||||
|
||||
def should_show_aside?
|
||||
(budget.selecting? && !unfeasible?) ||
|
||||
(budget.balloting? && feasible?) ||
|
||||
(budget.selecting? && !unfeasible?) ||
|
||||
(budget.balloting? && feasible?) ||
|
||||
(budget.valuating? && !unfeasible?)
|
||||
end
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ class Comment < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def author=(author)
|
||||
self.user= author
|
||||
self.user = author
|
||||
end
|
||||
|
||||
def total_votes
|
||||
|
||||
@@ -3,7 +3,7 @@ module Conflictable
|
||||
|
||||
def conflictive?
|
||||
return false unless flags_count > 0 && cached_votes_up > 0
|
||||
cached_votes_up/flags_count.to_f < 5
|
||||
cached_votes_up / flags_count.to_f < 5
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -35,7 +35,7 @@ class Legislation::Annotation < ActiveRecord::Base
|
||||
selector_end = "/html/body/#{range_end}"
|
||||
el_end = doc.at_xpath(selector_end)
|
||||
|
||||
remainder_el_start = el_start.text[0 .. range_start_offset-1] unless range_start_offset.zero?
|
||||
remainder_el_start = el_start.text[0 .. range_start_offset - 1] unless range_start_offset.zero?
|
||||
remainder_el_end = el_end.text[range_end_offset .. -1]
|
||||
|
||||
self.context = "#{remainder_el_start}<span class=annotator-hl>#{quote}</span>#{remainder_el_end}"
|
||||
|
||||
Reference in New Issue
Block a user