From f1cd06e95c1377a059d6d30851f99f58bea6553b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E9=87=8E=E6=81=B5=E7=91=A0?= Date: Sun, 19 Jan 2020 07:45:09 +0900 Subject: [PATCH 1/3] Add some modification that should generate warning outputs in danger --- QuickshaRe/Domain/QRPictureGenerator.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/QuickshaRe/Domain/QRPictureGenerator.swift b/QuickshaRe/Domain/QRPictureGenerator.swift index 024dc41..7803b66 100644 --- a/QuickshaRe/Domain/QRPictureGenerator.swift +++ b/QuickshaRe/Domain/QRPictureGenerator.swift @@ -13,8 +13,12 @@ final public class QRPictureGenerator { let context = CIContext() + private let dummy :Int = 123 + public func qrPicture(for text: String) -> Picture { + let dummy = 123 + let ciGenerator = CIFilter.qrCodeGenerator() let qrCode = ciGenerator.qrCodeImage(for: text, correctionLevel: "H")! let output = context.createCGImage(qrCode, from: qrCode.extent)! From 519b74a8e99df3f1a8783220395a5944db085caa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=20=E7=BF=94=E6=96=B0?= Date: Wed, 8 Jul 2020 15:10:55 +0900 Subject: [PATCH 2/3] Fiix lint error only and keep the build warning --- QuickshaRe/Domain/QRPictureGenerator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QuickshaRe/Domain/QRPictureGenerator.swift b/QuickshaRe/Domain/QRPictureGenerator.swift index 7803b66..cb2e441 100644 --- a/QuickshaRe/Domain/QRPictureGenerator.swift +++ b/QuickshaRe/Domain/QRPictureGenerator.swift @@ -13,7 +13,7 @@ final public class QRPictureGenerator { let context = CIContext() - private let dummy :Int = 123 + private let dummy: Int = 123 public func qrPicture(for text: String) -> Picture { From e69b76699fca22116241efe159233c85a0222111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=20=E7=BF=94=E6=96=B0?= Date: Wed, 8 Jul 2020 15:52:18 +0900 Subject: [PATCH 3/3] Add another dummy variable for test --- QuickshaRe/Domain/QRPictureGenerator.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/QuickshaRe/Domain/QRPictureGenerator.swift b/QuickshaRe/Domain/QRPictureGenerator.swift index cb2e441..4190cdb 100644 --- a/QuickshaRe/Domain/QRPictureGenerator.swift +++ b/QuickshaRe/Domain/QRPictureGenerator.swift @@ -18,6 +18,7 @@ final public class QRPictureGenerator { public func qrPicture(for text: String) -> Picture { let dummy = 123 + let anotherDummy = 456 let ciGenerator = CIFilter.qrCodeGenerator() let qrCode = ciGenerator.qrCodeImage(for: text, correctionLevel: "H")!