19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# File 'lib/rubocop/formatter/offense_count_formatter.rb', line 19
def started(target_files)
super
@offense_counts = Hash.new(0)
@offending_files_count = 0
@style_guide_links = {}
return unless output.tty?
file_phrase = target_files.one? ? 'file' : 'files'
bar_format = " %c/%C #{file_phrase} |%w>%i| %e "
@progressbar = ProgressBar.create(
output: output,
total: target_files.count,
format: bar_format,
autostart: false
)
@progressbar.start
end
|