From e05e55c44e2d1aebc5f69a4a0b2cfa2777d1f322 Mon Sep 17 00:00:00 2001 From: Alan Maynard Date: Tue, 12 Mar 2019 12:03:22 -0400 Subject: [PATCH 1/2] SWF-14 added .swiftlint.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - disabled rules for silly things like line length and short identifier names - don’t run swiftlint in our pods directory, since we shouldn’t be changing anything there --- SynchronyFinancial/.swiftlint.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 SynchronyFinancial/.swiftlint.yml diff --git a/SynchronyFinancial/.swiftlint.yml b/SynchronyFinancial/.swiftlint.yml new file mode 100644 index 0000000..da47ce2 --- /dev/null +++ b/SynchronyFinancial/.swiftlint.yml @@ -0,0 +1,5 @@ +disabled_rules: + - line_length + - identifier_name +excluded: + - Pods From 4217f757b590cf97af2bebea5166b4c8d9baf3a5 Mon Sep 17 00:00:00 2001 From: Alan Maynard Date: Tue, 12 Mar 2019 12:03:52 -0400 Subject: [PATCH 2/2] SWF-14 remove tags to disable swiftlint warnings - these can be removed as a result of adding .swiftlint.yml --- .../ExtensionDelegate.swift | 1 - SynchronyFinancial/SynchronyFinancial/AppDelegate.swift | 1 - 2 files changed, 2 deletions(-) diff --git a/SynchronyFinancial/SynchronyFinancial WatchKit Extension/ExtensionDelegate.swift b/SynchronyFinancial/SynchronyFinancial WatchKit Extension/ExtensionDelegate.swift index f573484..eed655b 100644 --- a/SynchronyFinancial/SynchronyFinancial WatchKit Extension/ExtensionDelegate.swift +++ b/SynchronyFinancial/SynchronyFinancial WatchKit Extension/ExtensionDelegate.swift @@ -8,7 +8,6 @@ import WatchKit -//swiftlint:disable line_length class ExtensionDelegate: NSObject, WKExtensionDelegate { func applicationDidFinishLaunching() { diff --git a/SynchronyFinancial/SynchronyFinancial/AppDelegate.swift b/SynchronyFinancial/SynchronyFinancial/AppDelegate.swift index 4122478..4a3443e 100644 --- a/SynchronyFinancial/SynchronyFinancial/AppDelegate.swift +++ b/SynchronyFinancial/SynchronyFinancial/AppDelegate.swift @@ -8,7 +8,6 @@ import UIKit -//swiftlint:disable line_length @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate {