Skip to content

Commit

Permalink
Add swiftlint and fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotliamba committed Aug 16, 2022
1 parent 8abd97f commit 53214e4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ xcshareddata/
# Swift Package Manager
.build/
Package.resolved*
lintOutput.json
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let package = Package(
products: [
.library(
name: "Utils",
targets: ["Utils"]),
targets: ["Utils"])
],
dependencies: [
],
Expand Down
22 changes: 22 additions & 0 deletions UtilsExample/UtilsExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
isa = PBXNativeTarget;
buildConfigurationList = 948BE0A828ABA1CC00A3D10F /* Build configuration list for PBXNativeTarget "UtilsExample" */;
buildPhases = (
94B5554428ABE74B000DEFEF /* Swiftlint */,
948BE09028ABA1CB00A3D10F /* Sources */,
948BE09128ABA1CB00A3D10F /* Frameworks */,
948BE09228ABA1CB00A3D10F /* Resources */,
Expand Down Expand Up @@ -158,6 +159,27 @@
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
94B5554428ABE74B000DEFEF /* Swiftlint */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
name = Swiftlint;
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "export PATH=\"$PATH:/opt/homebrew/bin\"\n\nif which swiftlint >/dev/null; then\n swiftlint --path .. --config ../swiftlint.yml\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n";
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
948BE09028ABA1CB00A3D10F /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand Down

0 comments on commit 53214e4

Please sign in to comment.