Exclude:
- 'app/models/issue_query.rb'
- 'config/initializers/10-patches.rb'
- - 'lib/redmine/helpers/gantt.rb'
# Cop supports --auto-correct.
Layout/ClosingHeredocIndentation:
output = +''
data_options = {}
data_options[:collapse_expand] = "#{object.class}-#{object.id}".downcase if object
-
- css = "task " + case object
+ css = "task " +
+ case object
when Project
"project"
when Version
else
""
end
-
# Renders the task bar, with progress and late
if coords[:bar_start] && coords[:bar_end]
width = coords[:bar_end] - coords[:bar_start] - 2