From 69c2ae3624075f0f142b92eac673057deae69e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B8=CC=86=20=D0=90?= =?UTF-8?q?=D1=88=D0=B0=D0=BD=D0=B8=D0=BD?= Date: Sat, 23 Jan 2016 23:35:14 +0300 Subject: [PATCH] add static analyzers --- .../.swiftlint.yml | 0 .tailor.yml => iOS-Base-Library/.tailor.yml | 0 iOS-Base-Library/Podfile | 4 +++ .../project.pbxproj | 2 +- .../iOS-Base-Library/AppDelegate.swift | 32 +++++++++++++------ .../iOS-Base-Library/ViewController.swift | 1 - iOS-Base-Library/Копия Podfile | 9 ------ 7 files changed, 28 insertions(+), 20 deletions(-) rename .swiftlint.yml => iOS-Base-Library/.swiftlint.yml (100%) rename .tailor.yml => iOS-Base-Library/.tailor.yml (100%) delete mode 100644 iOS-Base-Library/Копия Podfile diff --git a/.swiftlint.yml b/iOS-Base-Library/.swiftlint.yml similarity index 100% rename from .swiftlint.yml rename to iOS-Base-Library/.swiftlint.yml diff --git a/.tailor.yml b/iOS-Base-Library/.tailor.yml similarity index 100% rename from .tailor.yml rename to iOS-Base-Library/.tailor.yml diff --git a/iOS-Base-Library/Podfile b/iOS-Base-Library/Podfile index 6d1af3c4..d22d668c 100644 --- a/iOS-Base-Library/Podfile +++ b/iOS-Base-Library/Podfile @@ -2,8 +2,12 @@ # platform :ios, '8.0' # Uncomment this line if you're using Swift use_frameworks! + +# ignore all warnings from all pods inhibit_all_warnings! +source 'https://github.com/CocoaPods/Specs.git' + target 'iOS-Base-Library' do pod 'Alamofire', '~> 3.0' end \ No newline at end of file diff --git a/iOS-Base-Library/iOS-Base-Library.xcodeproj/project.pbxproj b/iOS-Base-Library/iOS-Base-Library.xcodeproj/project.pbxproj index 41a9e2d6..99ad03f4 100644 --- a/iOS-Base-Library/iOS-Base-Library.xcodeproj/project.pbxproj +++ b/iOS-Base-Library/iOS-Base-Library.xcodeproj/project.pbxproj @@ -202,7 +202,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "if hash tailor 2>/dev/null; then\n tailor\nelse\n echo \"warning: Please install Tailor from https://tailor.sh\"\nfi\n\ninclude:\n- Source # Inspect all Swift files under \"Source/\"\nexclude:\n- '**Tests.swift' # Ignore Swift files that end in \"Tests\"\n- Source/Carthage # Ignore Swift files under \"Source/Carthage/\"\n- Source/Pods # Ignore Swift files under \"Source/Pods/\""; + shellScript = "if hash tailor 2>/dev/null; then\n tailor\nelse\n echo \"warning: Please install Tailor from https://tailor.sh\"\nfi"; }; 952A639F1C540E4F00E3572C /* Swiftline */ = { isa = PBXShellScriptBuildPhase; diff --git a/iOS-Base-Library/iOS-Base-Library/AppDelegate.swift b/iOS-Base-Library/iOS-Base-Library/AppDelegate.swift index 1748344d..9747a808 100644 --- a/iOS-Base-Library/iOS-Base-Library/AppDelegate.swift +++ b/iOS-Base-Library/iOS-Base-Library/AppDelegate.swift @@ -14,33 +14,47 @@ class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? - func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { + func application(application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(application: UIApplication) { - // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. + // Sent when the application is about to move from active to + // inactive state. This can occur for certain types of temporary + // interruptions (such as an incoming phone call or SMS message) + // or when the user quits the application and it begins the transition + // to the background state. + // Use this method to pause ongoing tasks, disable timers, and + // throttle down OpenGL ES frame rates. Games should use this method to pause the game. } func applicationDidEnterBackground(application: UIApplication) { - // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. - // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + // Use this method to release shared resources, + // save user data, invalidate timers, and store enough + // application state information to restore your application to + // its current state in case it is terminated later. + // If your application supports background execution, this method is called + // instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(application: UIApplication) { - // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. + // Called as part of the transition from the background + // to the inactive state; here you can undo many of the changes + // made on entering the background. } func applicationDidBecomeActive(application: UIApplication) { - // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + // Restart any tasks that were paused (or not yet started) + // while the application was inactive. If the application was previously + // in the background, optionally refresh the user interface. } func applicationWillTerminate(application: UIApplication) { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + // Called when the application is about to terminate. + // Save data if appropriate. See also applicationDidEnterBackground:. } } - diff --git a/iOS-Base-Library/iOS-Base-Library/ViewController.swift b/iOS-Base-Library/iOS-Base-Library/ViewController.swift index 98c5b995..b3bc5faa 100644 --- a/iOS-Base-Library/iOS-Base-Library/ViewController.swift +++ b/iOS-Base-Library/iOS-Base-Library/ViewController.swift @@ -22,4 +22,3 @@ class ViewController: UIViewController { } - diff --git a/iOS-Base-Library/Копия Podfile b/iOS-Base-Library/Копия Podfile deleted file mode 100644 index 6d1af3c4..00000000 --- a/iOS-Base-Library/Копия Podfile +++ /dev/null @@ -1,9 +0,0 @@ -# Uncomment this line to define a global platform for your project -# platform :ios, '8.0' -# Uncomment this line if you're using Swift -use_frameworks! -inhibit_all_warnings! - -target 'iOS-Base-Library' do - pod 'Alamofire', '~> 3.0' -end \ No newline at end of file