项目作者: muyexi

项目描述 :
Share lint rules between projects and lint changed files with SwiftLint.
高级语言: Shell
项目地址: git://github.com/muyexi/SwiftLinter.git
创建时间: 2017-09-12T08:52:38Z
项目社区:https://github.com/muyexi/SwiftLinter

开源协议:MIT License

下载


CocoaPods
license

SwiftLinter help you share lint rules between projects and lint changed Swift source files in your Git repo with SwiftLint.

Installation

  1. pod 'SwiftLinter'

Usage

Add a new “Run Script Phase” with:

  1. "${SRCROOT}/Pods/SwiftLinter/swift-lint.sh"

Or specify autocorrect to autocorrect changed files:

  1. "${SRCROOT}/Pods/SwiftLinter/swift-lint.sh" autocorrect

To change the default rules, fork this repo and edit the config file based on your needs. Learn more from here.

  1. pod 'SwiftLinter', :git => 'YOUR_GIT_REPO'

License

SwiftLinter is released under the MIT license. See LICENSE for details.