Skip to content

Commit

Permalink
Fix swift lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
polok committed Mar 5, 2024
1 parent c214eb2 commit 6d8e73f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Sources/FeaturevisorTestRunner/FeaturevisorTestRunner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 6d8e73f

Please sign in to comment.