From 6d8e73ff354e93767eba2ffd6c9ea698e7217820 Mon Sep 17 00:00:00 2001 From: Marcin Polak Date: Tue, 5 Mar 2024 09:52:33 +0100 Subject: [PATCH] Fix swift lint issues --- .../FeaturevisorTestRunner.swift | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Sources/FeaturevisorTestRunner/FeaturevisorTestRunner.swift b/Sources/FeaturevisorTestRunner/FeaturevisorTestRunner.swift index 42ef131..483216a 100644 --- a/Sources/FeaturevisorTestRunner/FeaturevisorTestRunner.swift +++ b/Sources/FeaturevisorTestRunner/FeaturevisorTestRunner.swift @@ -14,10 +14,12 @@ struct FeaturevisorTestRunner { func run() throws { - let featuresTestDirectoryPath = CommandLine.arguments[1] // TODO Handle command line parameters better + // TODO Handle command line parameters better + let featuresTestDirectoryPath = CommandLine.arguments[1] // Run Featurevisor CLI to build the datafiles - Commands.Task.run("bash -c cd \(featuresTestDirectoryPath) && featurevisor build") // TODO: Handle better + // TODO: Handle better, react on errors etc. + Commands.Task.run("bash -c cd \(featuresTestDirectoryPath) && featurevisor build") let testSuits = try loadAllFeatureTestSuits( featuresTestDirectoryPath: featuresTestDirectoryPath @@ -277,7 +279,8 @@ extension FeaturevisorTestRunner { in features: [Feature] ) -> Bool { - guard let feature = features.first(where: { $0.key == "\(featureKey).yml" }) else { // TODO: We need to cut off the extension + // TODO: We need to cut off the extension + guard let feature = features.first(where: { $0.key == "\(featureKey).yml" }) else { return false } @@ -310,7 +313,8 @@ extension FeaturevisorTestRunner { in features: [Feature] ) -> Bool { - guard let feature = features.first(where: { $0.key == "\(featureKey).yml" }) else { // TODO: We need to cut off the extension + // TODO: We need to cut off the extension + guard let feature = features.first(where: { $0.key == "\(featureKey).yml" }) else { return false }