Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add checking for SDK code syntaxis with swiftlint
- Loading branch information
1 parent
b468b20
commit 93cd102
Showing
3 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Dangerfile.swift | ||
|
||
import Foundation | ||
import Danger | ||
|
||
let danger = Danger() | ||
|
||
if danger.git.createdFiles.count + danger.git.modifiedFiles.count - danger.git.deletedFiles.count > 10 { | ||
warn("Big PR, try to keep changes smaller if you can") | ||
} | ||
|
||
SwiftLint.lint(directory: "CrowdinSDK/", configFile: "CrowdinSDK/Classes/.swiftlint.yml") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import DangerSwiftLint // package: https://github.com/ashfurrow/DangerSwiftLint.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters