Skip to content

Share lint rules between projects and lint changed files with SwiftLint.

License

Notifications You must be signed in to change notification settings

muyexi/SwiftLinter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CocoaPods license

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

Installation

pod 'SwiftLinter'

Usage

Add a new "Run Script Phase" with:

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

Or specify autocorrect to autocorrect changed files:

"${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.

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

License

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

About

Share lint rules between projects and lint changed files with SwiftLint.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published