From a35a195eead0034f9a4ff1ca9be4a3629810fea4 Mon Sep 17 00:00:00 2001 From: Matt <85322+mattmassicotte@users.noreply.github.com> Date: Wed, 24 Jan 2024 11:54:48 -0500 Subject: [PATCH] RelativePathsRule for #9 --- README.md | 1 + .../XCLinting/Rules/RelativePathsRule.swift | 39 ++ Sources/XCLinting/XCLinter.swift | 4 +- .../XCLintTests/RelativePathsRuleTests.swift | 39 ++ .../project.pbxproj | 350 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcschemes/StockMacOSApp.xcscheme | 77 ++++ 8 files changed, 524 insertions(+), 1 deletion(-) create mode 100644 Sources/XCLinting/Rules/RelativePathsRule.swift create mode 100644 Tests/XCLintTests/RelativePathsRuleTests.swift create mode 100644 Tests/XCLintTests/TestData/AbsolueFileReference.xcodeproj/project.pbxproj create mode 100644 Tests/XCLintTests/TestData/AbsolueFileReference.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Tests/XCLintTests/TestData/AbsolueFileReference.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 Tests/XCLintTests/TestData/AbsolueFileReference.xcodeproj/xcshareddata/xcschemes/StockMacOSApp.xcscheme diff --git a/README.md b/README.md index 40d61a7..e4f196b 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ opt_in_rules: disabled_rules: - build_files_ordered # checks that the ordering of techincally-unordered collections Xcode writes out is preserved - validate_build_settings # checks that build settings have valid values + - relative_paths # checks for any absolute file references ``` ## Alternatives diff --git a/Sources/XCLinting/Rules/RelativePathsRule.swift b/Sources/XCLinting/Rules/RelativePathsRule.swift new file mode 100644 index 0000000..b6ad950 --- /dev/null +++ b/Sources/XCLinting/Rules/RelativePathsRule.swift @@ -0,0 +1,39 @@ +import Foundation + +import XcodeProj + +/// Make sure all file references use relative paths. +struct RelativePathsRule { + func run(_ environment: XCLinter.Environment) throws -> [Violation] { + var violations = [Violation]() + + // check top-level + for project in environment.project.pbxproj.projects { + guard let group = project.mainGroup else { continue } + + violations.append(contentsOf: checkGroup(group)) + } + + return violations + } + + private func checkGroup(_ group: PBXGroup) -> [Violation] { + var violations = [Violation]() + + let groupName = group.name ?? group.path ?? "???" + + for element in group.children { + let elementName = element.name ?? element.path ?? "???" + + if element.path?.starts(with: "/") == true { + violations.append(.init("\(groupName):\(elementName) has an absolute file path")) + } + + if let subgroup = element as? PBXGroup { + violations.append(contentsOf: checkGroup(subgroup)) + } + } + + return violations + } +} diff --git a/Sources/XCLinting/XCLinter.swift b/Sources/XCLinting/XCLinter.swift index 3d6fd92..a640445 100644 --- a/Sources/XCLinting/XCLinter.swift +++ b/Sources/XCLinting/XCLinter.swift @@ -68,6 +68,7 @@ extension XCLinter { public static let defaultRuleIdentifiers: Set = [ "build_files_ordered", "validate_build_settings", + "relative_paths", ] public static let defaultRules: [Rule] = Array(ruleMap.filter({ defaultRuleIdentifiers.contains($0.0) }).values) @@ -81,6 +82,7 @@ extension XCLinter { "implicit_dependencies": { try ImplicitDependenciesRule().run($0) }, "targets_use_xcconfig": { try TargetsUseXCConfigRule().run($0) }, "projects_use_xcconfig": { try ProjectsUseXCConfigRule().run($0) }, - "shared_scheme_skips_tests": { try SharedSchemeSkipsTestsRule().run($0) } + "shared_scheme_skips_tests": { try SharedSchemeSkipsTestsRule().run($0) }, + "relative_paths": { try RelativePathsRule().run($0) }, ] } diff --git a/Tests/XCLintTests/RelativePathsRuleTests.swift b/Tests/XCLintTests/RelativePathsRuleTests.swift new file mode 100644 index 0000000..d8fc773 --- /dev/null +++ b/Tests/XCLintTests/RelativePathsRuleTests.swift @@ -0,0 +1,39 @@ +import XCTest + +@testable import XCLinting +import XcodeProj + +final class RelativePathsRuleTests: XCTestCase { + func testProjectWithOnlyRelativePaths() throws { + let url = try Bundle.module.testDataURL(named: "StockMacOSApp.xcodeproj") + + let project = try XcodeProj(pathString: url.path) + + let env = XCLinter.Environment( + project: project, + projectRootURL: url, + configuration: Configuration() + ) + + let violations = try RelativePathsRule().run(env) + + XCTAssertTrue(violations.isEmpty) + } + + func testProjectWithOneAbosluteFilePath() throws { + let url = try Bundle.module.testDataURL(named: "AbsolueFileReference.xcodeproj") + + let project = try XcodeProj(pathString: url.path) + + let env = XCLinter.Environment( + project: project, + projectRootURL: url, + configuration: Configuration() + ) + + let violations = try RelativePathsRule().run(env) + + XCTAssertFalse(violations.isEmpty) + } +} + diff --git a/Tests/XCLintTests/TestData/AbsolueFileReference.xcodeproj/project.pbxproj b/Tests/XCLintTests/TestData/AbsolueFileReference.xcodeproj/project.pbxproj new file mode 100644 index 0000000..cf62465 --- /dev/null +++ b/Tests/XCLintTests/TestData/AbsolueFileReference.xcodeproj/project.pbxproj @@ -0,0 +1,350 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + C965BD2C2AE6E5D700E5836A /* StockMacOSAppApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = C965BD2B2AE6E5D700E5836A /* StockMacOSAppApp.swift */; }; + C965BD2E2AE6E5D700E5836A /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C965BD2D2AE6E5D700E5836A /* ContentView.swift */; }; + C965BD302AE6E5D800E5836A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C965BD2F2AE6E5D800E5836A /* Assets.xcassets */; }; + C965BD332AE6E5D800E5836A /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C965BD322AE6E5D800E5836A /* Preview Assets.xcassets */; }; + C973DFF32B6174AB000998F7 /* test.md in Resources */ = {isa = PBXBuildFile; fileRef = C973DFF22B6174AB000998F7 /* test.md */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + C965BD282AE6E5D700E5836A /* StockMacOSApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = StockMacOSApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; + C965BD2B2AE6E5D700E5836A /* StockMacOSAppApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StockMacOSAppApp.swift; sourceTree = ""; }; + C965BD2D2AE6E5D700E5836A /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + C965BD2F2AE6E5D800E5836A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + C965BD322AE6E5D800E5836A /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + C965BD342AE6E5D800E5836A /* StockMacOSApp.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = StockMacOSApp.entitlements; sourceTree = ""; }; + C973DFF22B6174AB000998F7 /* test.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; name = test.md; path = /Users/matt/Desktop/test.md; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + C965BD252AE6E5D700E5836A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + C965BD1F2AE6E5D700E5836A = { + isa = PBXGroup; + children = ( + C965BD2A2AE6E5D700E5836A /* StockMacOSApp */, + C965BD292AE6E5D700E5836A /* Products */, + ); + sourceTree = ""; + }; + C965BD292AE6E5D700E5836A /* Products */ = { + isa = PBXGroup; + children = ( + C965BD282AE6E5D700E5836A /* StockMacOSApp.app */, + ); + name = Products; + sourceTree = ""; + }; + C965BD2A2AE6E5D700E5836A /* StockMacOSApp */ = { + isa = PBXGroup; + children = ( + C973DFF22B6174AB000998F7 /* test.md */, + C965BD2B2AE6E5D700E5836A /* StockMacOSAppApp.swift */, + C965BD2D2AE6E5D700E5836A /* ContentView.swift */, + C965BD2F2AE6E5D800E5836A /* Assets.xcassets */, + C965BD342AE6E5D800E5836A /* StockMacOSApp.entitlements */, + C965BD312AE6E5D800E5836A /* Preview Content */, + ); + path = StockMacOSApp; + sourceTree = ""; + }; + C965BD312AE6E5D800E5836A /* Preview Content */ = { + isa = PBXGroup; + children = ( + C965BD322AE6E5D800E5836A /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + C965BD272AE6E5D700E5836A /* StockMacOSApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = C965BD372AE6E5D800E5836A /* Build configuration list for PBXNativeTarget "StockMacOSApp" */; + buildPhases = ( + C965BD242AE6E5D700E5836A /* Sources */, + C965BD252AE6E5D700E5836A /* Frameworks */, + C965BD262AE6E5D700E5836A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = StockMacOSApp; + productName = StockMacOSApp; + productReference = C965BD282AE6E5D700E5836A /* StockMacOSApp.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + C965BD202AE6E5D700E5836A /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1510; + LastUpgradeCheck = 1510; + TargetAttributes = { + C965BD272AE6E5D700E5836A = { + CreatedOnToolsVersion = 15.1; + }; + }; + }; + buildConfigurationList = C965BD232AE6E5D700E5836A /* Build configuration list for PBXProject "StockMacOSApp" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = C965BD1F2AE6E5D700E5836A; + productRefGroup = C965BD292AE6E5D700E5836A /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + C965BD272AE6E5D700E5836A /* StockMacOSApp */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + C965BD262AE6E5D700E5836A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C973DFF32B6174AB000998F7 /* test.md in Resources */, + C965BD332AE6E5D800E5836A /* Preview Assets.xcassets in Resources */, + C965BD302AE6E5D800E5836A /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + C965BD242AE6E5D700E5836A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C965BD2E2AE6E5D700E5836A /* ContentView.swift in Sources */, + C965BD2C2AE6E5D700E5836A /* StockMacOSAppApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + C965BD352AE6E5D800E5836A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MACOSX_DEPLOYMENT_TARGET = 14.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + C965BD362AE6E5D800E5836A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MACOSX_DEPLOYMENT_TARGET = 14.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + }; + name = Release; + }; + C965BD382AE6E5D800E5836A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = StockMacOSApp/StockMacOSApp.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"StockMacOSApp/Preview Content\""; + DEVELOPMENT_TEAM = 77X93NZ3G2; + ENABLE_HARDENED_RUNTIME = YES; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = org.massicotte.StockMacOSApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + C965BD392AE6E5D800E5836A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = StockMacOSApp/StockMacOSApp.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"StockMacOSApp/Preview Content\""; + DEVELOPMENT_TEAM = 77X93NZ3G2; + ENABLE_HARDENED_RUNTIME = YES; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = org.massicotte.StockMacOSApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + C965BD232AE6E5D700E5836A /* Build configuration list for PBXProject "StockMacOSApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C965BD352AE6E5D800E5836A /* Debug */, + C965BD362AE6E5D800E5836A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C965BD372AE6E5D800E5836A /* Build configuration list for PBXNativeTarget "StockMacOSApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C965BD382AE6E5D800E5836A /* Debug */, + C965BD392AE6E5D800E5836A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = C965BD202AE6E5D700E5836A /* Project object */; +} diff --git a/Tests/XCLintTests/TestData/AbsolueFileReference.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Tests/XCLintTests/TestData/AbsolueFileReference.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/Tests/XCLintTests/TestData/AbsolueFileReference.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Tests/XCLintTests/TestData/AbsolueFileReference.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Tests/XCLintTests/TestData/AbsolueFileReference.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Tests/XCLintTests/TestData/AbsolueFileReference.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Tests/XCLintTests/TestData/AbsolueFileReference.xcodeproj/xcshareddata/xcschemes/StockMacOSApp.xcscheme b/Tests/XCLintTests/TestData/AbsolueFileReference.xcodeproj/xcshareddata/xcschemes/StockMacOSApp.xcscheme new file mode 100644 index 0000000..be2c15d --- /dev/null +++ b/Tests/XCLintTests/TestData/AbsolueFileReference.xcodeproj/xcshareddata/xcschemes/StockMacOSApp.xcscheme @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +