Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muyexi/SwiftLinter
Share lint rules between projects and lint changed files with SwiftLint.
https://github.com/muyexi/SwiftLinter
swift swiftlint
Last synced: 9 days ago
JSON representation
Share lint rules between projects and lint changed files with SwiftLint.
- Host: GitHub
- URL: https://github.com/muyexi/SwiftLinter
- Owner: muyexi
- License: mit
- Created: 2017-09-12T08:52:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-04T04:57:27.000Z (almost 6 years ago)
- Last Synced: 2024-11-08T02:48:42.515Z (about 1 month ago)
- Topics: swift, swiftlint
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - SwiftLinter - Share lint rules between projects and lint changed files with SwiftLint. (Code Quality / Linter)
- awesome-ios-star - SwiftLinter - Share lint rules between projects and lint changed files with SwiftLint. (Code Quality / Linter)
README
[![CocoaPods](https://img.shields.io/cocoapods/v/SwiftLinter.svg?maxAge=2592000)](http://cocoadocs.org/docsets/SwiftLinter)
[![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/muyexi/SwiftLinter/blob/master/LICENSE)SwiftLinter help you share lint rules between projects and lint changed Swift source files in your Git repo with [SwiftLint](https://github.com/realm/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](https://github.com/realm/SwiftLint#configuration).
```
pod 'SwiftLinter', :git => 'YOUR_GIT_REPO'
```## License
SwiftLinter is released under the MIT license. See LICENSE for details.