♻️ :: Added swiftlint - rules and fixed corresponding warnings

This commit is contained in:
Felix Mau
2018-12-22 16:40:41 +01:00
parent af963e693c
commit dc79ce663c
21 changed files with 109 additions and 46 deletions
@@ -2,8 +2,8 @@
// AdvancedExampleViewController.swift
// GradientLoadingBar_Example
//
// Created by Felix Mau on 29.08.18.
// Copyright © 2018 CocoaPods. All rights reserved.
// Created by Felix Mau on 08/30/18.
// Copyright © 2018 Felix Mau. All rights reserved.
//
import UIKit
@@ -12,8 +12,8 @@ import GradientLoadingBar
class AdvancedExampleViewController: UIViewController {
// MARK: - Outlets
@IBOutlet var customSuperviewButton: BlueBorderedButton!
@IBOutlet var customColorsButton: BlueBorderedButton!
@IBOutlet private var customSuperviewButton: BlueBorderedButton!
@IBOutlet private var customColorsButton: BlueBorderedButton!
// MARK: - Private properties
+2 -2
View File
@@ -2,8 +2,8 @@
// AppDelegate.swift
// GradientLoadingBar
//
// Created by fxm90 on 09/30/2017.
// Copyright (c) 2017 fxm90. All rights reserved.
// Created by Felix Mau on 09/30/17.
// Copyright © 2017 Felix Mau. All rights reserved.
//
import GradientLoadingBar
@@ -2,8 +2,8 @@
// BasicExampleViewController.swift
// GradientLoadingBar_Example
//
// Created by fxm90 on 09/30/2017.
// Copyright (c) 2017 fxm90. All rights reserved.
// Created by Felix Mau on 09/30/17.
// Copyright © 2017 Felix Mau. All rights reserved.
//
import UIKit
@@ -2,8 +2,8 @@
// UIColor+CustomColors.swift
// GradientLoadingBar_Example
//
// Created by Felix Mau on 29.08.18.
// Copyright © 2018 CocoaPods. All rights reserved.
// Created by Felix Mau on 08/29/18.
// Copyright © 2018 Felix Mau. All rights reserved.
//
import UIKit
@@ -2,8 +2,8 @@
// NavigationBarExampleViewController.swift
// GradientLoadingBar_Example
//
// Created by Felix Mau on 29.08.18.
// Copyright © 2018 CocoaPods. All rights reserved.
// Created by Felix Mau on 08/29/18.
// Copyright © 2018 Felix Mau. All rights reserved.
//
import UIKit
@@ -12,7 +12,7 @@ import GradientLoadingBar
class NavigationBarExampleViewController: UIViewController {
// MARK: - Outlets
@IBOutlet var navigationBar: UINavigationBar!
@IBOutlet private var navigationBar: UINavigationBar!
// MARK: - Private properties
@@ -2,8 +2,8 @@
// SafeAreaExampleViewController.swift
// GradientLoadingBar_Example
//
// Created by Felix Mau on 30.08.18.
// Copyright © 2018 CocoaPods. All rights reserved.
// Created by Felix Mau on 08/30/18.
// Copyright © 2018 Felix Mau. All rights reserved.
//
import UIKit
@@ -2,8 +2,8 @@
// BlueBorderedButton.swift
// GradientLoadingBar_Example
//
// Created by Felix Mau on 29.08.18.
// Copyright © 2018 CocoaPods. All rights reserved.
// Created by Felix Mau on 08/29/18.
// Copyright © 2018 Felix Mau. All rights reserved.
//
import UIKit
@@ -1,9 +1,9 @@
//
// BlueButton.swift
// BlueFilledButton.swift
// GradientLoadingBar_Example
//
// Created by Felix Mau on 29.08.18.
// Copyright © 2018 CocoaPods. All rights reserved.
// Created by Felix Mau on 08/29/18.
// Copyright © 2018 Felix Mau. All rights reserved.
//
import UIKit