From c6b0b0d7bf5a0c713102dcb43d833493bebb4e6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=AE=D1=80=D0=B8=D0=B8=CC=86=20=D0=A1=D0=BE=D1=80=D0=BE?= =?UTF-8?q?=D0=BA=D0=B8=D0=BD?= Date: Fri, 2 Aug 2019 17:26:51 +0300 Subject: [PATCH] Genetare one huge warning --- xcode/build_phases/Unused.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xcode/build_phases/Unused.rb b/xcode/build_phases/Unused.rb index 416b47e..2f88d64 100644 --- a/xcode/build_phases/Unused.rb +++ b/xcode/build_phases/Unused.rb @@ -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")