diff --git a/.gitignore b/.gitignore index 19b02bd..e0523b2 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ xcshareddata/ # Swift Package Manager .build/ Package.resolved* +lintOutput.json diff --git a/Package.swift b/Package.swift index ea8b78f..b89db84 100644 --- a/Package.swift +++ b/Package.swift @@ -10,7 +10,7 @@ let package = Package( products: [ .library( name: "Utils", - targets: ["Utils"]), + targets: ["Utils"]) ], dependencies: [ ], diff --git a/UtilsExample/UtilsExample.xcodeproj/project.pbxproj b/UtilsExample/UtilsExample.xcodeproj/project.pbxproj index 19f03d4..8f570a0 100644 --- a/UtilsExample/UtilsExample.xcodeproj/project.pbxproj +++ b/UtilsExample/UtilsExample.xcodeproj/project.pbxproj @@ -94,6 +94,7 @@ isa = PBXNativeTarget; buildConfigurationList = 948BE0A828ABA1CC00A3D10F /* Build configuration list for PBXNativeTarget "UtilsExample" */; buildPhases = ( + 94B5554428ABE74B000DEFEF /* Swiftlint */, 948BE09028ABA1CB00A3D10F /* Sources */, 948BE09128ABA1CB00A3D10F /* Frameworks */, 948BE09228ABA1CB00A3D10F /* Resources */, @@ -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;