Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tools] use Mint to manage SwiftLint #52

Merged
merged 7 commits into from
Feb 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ before_script:
- carthage bootstrap --platform iOS --no-use-binaries --cache-builds
- cd ../
script:
- swift run swiftlint --strict --quiet
- bundle exec fastlane ios lint
- bundle exec fastlane ios test
1 change: 1 addition & 0 deletions Mintfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
realm/[email protected]
2 changes: 1 addition & 1 deletion Nantes/Nantes.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if [ -z \"$CARTHAGE\" ]\nthen\n swift run swiftlint --path .. --strict --quiet\nfi\n";
shellScript = "if [ -z \"$CARTHAGE\" ]\nthen\n brew list mint &>/dev/null || brew install mint\n mint run --mintfile ../Mintfile swiftlint swiftlint --path .. --strict --quiet\nfi\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down
88 changes: 0 additions & 88 deletions Package.resolved

This file was deleted.

12 changes: 3 additions & 9 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,14 @@ import PackageDescription

let package = Package(
name: "Nantes",
dependencies: [
.package(
url: "https://github.com/Realm/SwiftLint",
from: "0.30.1"
),
],
dependencies: [],

// Note: SPM requires 1 target to build the package
targets: [
.target(
name: "Nantes",
dependencies: ["swiftlint"],
path: "Source/Classes",
sources: ["NantesLabel.swift"]
exclude: ["Nantes.h"]
)
]
)

3 changes: 2 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ platform :ios do
end

lane :lint do
swiftlint()
sh("brew list mint &>/dev/null || brew install mint")
sh("mint run --mintfile ../Mintfile swiftlint swiftlint --path .. --strict --quiet")
end
end