add static analyzers

This commit is contained in:
Николай Ашанин 2016-01-23 23:35:14 +03:00
parent 59174c1077
commit 69c2ae3624
7 changed files with 28 additions and 20 deletions

View File

@ -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

View File

@ -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;

View File

@ -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:.
}
}

View File

@ -22,4 +22,3 @@ class ViewController: UIViewController {
}

View File

@ -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