Fix Layout/LineEndStringConcatenationIndentation offenses

This commit is contained in:
Claudio Bley 2021-06-30 13:21:28 +02:00
parent 4812422742
commit 0f0efc0151
2 changed files with 9 additions and 4 deletions

View file

@ -4,6 +4,7 @@ lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'colorls/version'
# rubocop:disable Layout/LineEndStringConcatenationIndentation
POST_INSTALL_MESSAGE = %(
*******************************************************************
Changes introduced in colorls
@ -24,6 +25,7 @@ POST_INSTALL_MESSAGE = %(
*******************************************************************
)
# rubocop:enable Layout/LineEndStringConcatenationIndentation
# rubocop:disable Metrics/BlockLength
Gem::Specification.new do |spec|

View file

@ -75,11 +75,14 @@ module ColorLS
end
def display_report
print "\n Found #{@count.values.sum} items in total.".colorize(@colors[:report])
puts <<~REPORT
puts "\n\n\tFolders\t\t\t: #{@count[:folders]}"\
"\n\tRecognized files\t: #{@count[:recognized_files]}"\
"\n\tUnrecognized files\t: #{@count[:unrecognized_files]}"
Found #{@count.values.sum} items in total.
\tFolders\t\t\t: #{@count[:folders]}
\tRecognized files\t: #{@count[:recognized_files]}
\tUnrecognized files\t: #{@count[:unrecognized_files]}
REPORT
.colorize(@colors[:report])
end