Skip to content

Commit

Permalink
Merge pull request #29 from AckeeCZ/swiftlint_build_phase
Browse files Browse the repository at this point in the history
Run Swiftlint before build if available
  • Loading branch information
olejnjak authored Jun 16, 2020
2 parents a51cbdc + b656bcd commit c5c64c2
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

#### Checklist
<!-- DO NOT REMOVE THIS CHECKLIST OR YOU'LL BURN IN HELL 🔥🧨💣 -->
- [ ] Updated CHANGELOG.md.
- [ ] Added tests (if applicable)
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

## master

### Added
<!--- - <description> (#<PR_number, kudos to @<author>) --->
- Run SwiftLint on build if installed locally ([#29](https://github.com/AckeeCZ/ACKategories/pull/29), kudos to @olejnjak)

## 3.1.1

Expand Down
61 changes: 61 additions & 0 deletions Reqres.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@
objectVersion = 48;
objects = {

/* Begin PBXAggregateTarget section */
69EB1EA62498CECF00AF815F /* SwiftLint */ = {
isa = PBXAggregateTarget;
buildConfigurationList = 69EB1EA92498CECF00AF815F /* Build configuration list for PBXAggregateTarget "SwiftLint" */;
buildPhases = (
69EB1EAA2498CED200AF815F /* ShellScript */,
);
dependencies = (
);
name = SwiftLint;
productName = SwiftLint;
};
/* End PBXAggregateTarget section */

/* Begin PBXBuildFile section */
69476012229D5AD90025CD8E /* ReqresDefaultLoggerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69476011229D5AD90025CD8E /* ReqresDefaultLoggerTests.swift */; };
69476014229D5B0F0025CD8E /* ReqresDefaultNSLogger.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69476013229D5B0F0025CD8E /* ReqresDefaultNSLogger.swift */; };
Expand Down Expand Up @@ -271,6 +285,10 @@
LastSwiftMigration = 1000;
ProvisioningStyle = Automatic;
};
69EB1EA62498CECF00AF815F = {
CreatedOnToolsVersion = 11.5;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = 6971399C1FF4237400E5DD8C /* Build configuration list for PBXProject "Reqres" */;
Expand All @@ -289,6 +307,7 @@
69A899B11FF423C4003D0A71 /* Reqres */,
69A899BE1FF423E2003D0A71 /* ReqresExample */,
69A899E51FF427E0003D0A71 /* ReqresTests */,
69EB1EA62498CECF00AF815F /* SwiftLint */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -355,6 +374,23 @@
shellPath = /bin/sh;
shellScript = "/usr/local/bin/carthage copy-frameworks";
};
69EB1EAA2498CED200AF815F /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "swiftlint autocorrect || true\nswiftlint\n";
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down Expand Up @@ -884,6 +920,22 @@
};
name = Release;
};
69EB1EA72498CECF00AF815F /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
69EB1EA82498CECF00AF815F /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand Down Expand Up @@ -923,6 +975,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
69EB1EA92498CECF00AF815F /* Build configuration list for PBXAggregateTarget "SwiftLint" */ = {
isa = XCConfigurationList;
buildConfigurations = (
69EB1EA72498CECF00AF815F /* Debug */,
69EB1EA82498CECF00AF815F /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 697139991FF4237400E5DD8C /* Project object */;
Expand Down

0 comments on commit c5c64c2

Please sign in to comment.