Skip to content

Commit

Permalink
config swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
noboru-i committed Mar 7, 2018
1 parent d9c2fd8 commit daff414
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
15 changes: 15 additions & 0 deletions sample-ios-swift.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@
51F567A4204D2D25005A7970 /* Resources */,
D87F9D805E47BBB41A3E585C /* [CP] Embed Pods Frameworks */,
E76616E88AD2B6C54E603912 /* [CP] Copy Pods Resources */,
51455B29204F7840006F08DC /* Run SwiftLint */,
);
buildRules = (
);
Expand Down Expand Up @@ -337,6 +338,20 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
51455B29204F7840006F08DC /* Run SwiftLint */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Run SwiftLint";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if which swiftlint >/dev/null; then\nswiftlint\nelse\necho \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi";
};
5750694FD5C8C99B41C6D7B4 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down
4 changes: 3 additions & 1 deletion sample-ios-swiftTests/sample_ios_swiftTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
import XCTest
@testable import sample_ios_swift

// swiftlint:disable type_name
class sample_ios_swiftTests: XCTestCase {

// swiftlint:enable type_name

override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
Expand Down
2 changes: 2 additions & 0 deletions sample-ios-swiftUITests/sample_ios_swiftUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

import XCTest

// swiftlint:disable type_name
class sample_ios_swiftUITests: XCTestCase {
// swiftlint:enable type_name

override func setUp() {
super.setUp()
Expand Down

0 comments on commit daff414

Please sign in to comment.