Method: RubyCritic::SourceControlSystem::Perforce.compute_line

Defined in:
lib/rubycritic/source_control_systems/perforce.rb

.compute_line(file_cache, line_aggregator, line) ⇒ Object



76
77
78
79
80
81
82
# File 'lib/rubycritic/source_control_systems/perforce.rb', line 76

def self.compute_line(file_cache, line_aggregator, line)
  if line.chomp.empty?
    Perforce.insert_file_cache(file_cache, line_aggregator)
  else
    line_aggregator << line
  end
end