Style/ParenthesesAroundCondition:
Exclude:
- 'app/models/repository/subversion.rb'
- - 'app/models/wiki_page.rb'
- 'lib/diff.rb'
- 'lib/redmine/helpers/gantt.rb'
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
@lines = current_lines.collect {|t| [nil, nil, t]}
positions = []
current_lines.size.times {|i| positions << i}
- while (current.previous)
+ while current.previous
d = current.previous.text.split(/\r?\n/).diff(current.text.split(/\r?\n/)).diffs.flatten
d.each_slice(3) do |s|
sign, line = s[0], s[1]