Skip to content

Commit

Permalink
Merge pull request #4 from norio-nomura/add-travis
Browse files Browse the repository at this point in the history
Add travis
  • Loading branch information
norio-nomura authored Oct 24, 2016
2 parents 5b75b16 + 170ca0d commit c4c732c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: generic
os: osx
osx_image: xcode8
script: xcodebuild -scheme SwiftLintForXcode install DSTROOT=~ CODE_SIGN_IDENTITY=""
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
SwiftLint for Xcode is a Xcode Extension that was created to run [SwiftLint](https://github.com/realm/SwiftLint).

## Requirements
- Xcode 8.0 beta 6
- Xcode 8.0
- [SwiftLint](https://github.com/realm/SwiftLint)

## Install
Expand Down
3 changes: 2 additions & 1 deletion SwiftLint/SourceEditorCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@ class SourceEditorCommand: NSObject, XCSourceEditorCommand {
invocation.buffer.selections.setArray(updatedSelections)
}
}
} catch {
} catch let caughtError {
print(error)
error = caughtError as NSError
return
}

Expand Down
2 changes: 1 addition & 1 deletion SwiftLintHelper/SwiftLintHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import Foundation

@objc class SwiftLintHelper: NSObject, SwiftLintHelperProtocol {
func execute(in directory: String, with arguments: [String], reply: SwiftLintHelperResultHandler) {
func execute(in directory: String, with arguments: [String], reply: @escaping SwiftLintHelperResultHandler) {

let task = Process(), stdout = Pipe(), stderr = Pipe()
task.launchPath = "/usr/bin/env"
Expand Down

0 comments on commit c4c732c

Please sign in to comment.