Skip to content

Commit 18bdd03

Browse files
sebastianvarelaminuscorp
authored andcommitted
Add swiftlint
1 parent cae427c commit 18bdd03

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.swiftlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ opt_in_rules:
2626
- first_where
2727
- sorted_first_last
2828
included:
29-
- Source
29+
- Sources
3030
excluded:
3131
- Tests
3232
closure_end_indentation:

Mini.xcodeproj/project.pbxproj

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,6 +1178,7 @@
11781178
isa = PBXNativeTarget;
11791179
buildConfigurationList = OBJ_285 /* Build configuration list for PBXNativeTarget "MiniSwift" */;
11801180
buildPhases = (
1181+
F2F0AA1C232185C800BC7CD9 /* Swiftlint */,
11811182
OBJ_288 /* Sources */,
11821183
OBJ_307 /* Frameworks */,
11831184
);
@@ -1341,6 +1342,27 @@
13411342
};
13421343
/* End PBXProject section */
13431344

1345+
/* Begin PBXShellScriptBuildPhase section */
1346+
F2F0AA1C232185C800BC7CD9 /* Swiftlint */ = {
1347+
isa = PBXShellScriptBuildPhase;
1348+
buildActionMask = 2147483647;
1349+
files = (
1350+
);
1351+
inputFileListPaths = (
1352+
);
1353+
inputPaths = (
1354+
);
1355+
name = Swiftlint;
1356+
outputFileListPaths = (
1357+
);
1358+
outputPaths = (
1359+
);
1360+
runOnlyForDeploymentPostprocessing = 0;
1361+
shellPath = /bin/sh;
1362+
shellScript = "if which swiftlint >/dev/null; then\nswiftlint autocorrect\nswiftlint\nelse\necho \"warning: SwiftLint not installed, run: brew install swiftlint\"\nfi\n";
1363+
};
1364+
/* End PBXShellScriptBuildPhase section */
1365+
13441366
/* Begin PBXSourcesBuildPhase section */
13451367
OBJ_261 /* Sources */ = {
13461368
isa = PBXSourcesBuildPhase;

0 commit comments

Comments
 (0)