Genetare one huge warning

This commit is contained in:
Юрий Сорокин 2019-08-02 17:26:51 +03:00
parent 2c91968fdc
commit c6b0b0d7bf
1 changed files with 3 additions and 3 deletions

View File

@ -49,8 +49,8 @@ class Item
"#{@type.to_s} #{@name.to_s} from: #{@file}:#{@at} is unused"
end
def to_xcode
"#{full_file_path}:#{@at}:0: warning: #{@type.to_s} #{@name.to_s} is unused"
def to_xcode(count)
"Unused Code Warning! Total Count #{count}: warning: #{serialize} is unused"
end
@ -87,7 +87,7 @@ class Unused
if unused_warnings.length > 0
# show warning
puts "#{unused_warnings.map { |e| e.to_xcode }.join("\n")}"
puts "#{unused_warnings.map { |e| e.to_xcode unused_warnings.length }.join("\n")}"
# write log
File.open("UnusedLog.txt", "w") do |file|
file.write("Unused code warnings count: #{unused_warnings.length}\n\n")