From 6b3d8875478f4afa7a9658db2cd0136bd94aa7b7 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 25 May 2025 19:14:13 +0200 Subject: [PATCH] Fix SwiftLint identifier name violation - Change 'i' to 'index' in ListCommandTests to meet SwiftLint requirements --- .../Tests/peekabooTests/ListCommandTests.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/peekaboo-cli/Tests/peekabooTests/ListCommandTests.swift b/peekaboo-cli/Tests/peekabooTests/ListCommandTests.swift index 4862c90..84d8342 100644 --- a/peekaboo-cli/Tests/peekabooTests/ListCommandTests.swift +++ b/peekaboo-cli/Tests/peekabooTests/ListCommandTests.swift @@ -229,12 +229,12 @@ final class ListCommandTests: XCTestCase { func testApplicationInfoEncodingPerformance() throws { // Test performance of encoding many applications - let apps = (0..<100).map { i in + let apps = (0..<100).map { index in ApplicationInfo( - name: "App\(i)", - bundleIdentifier: "com.example.app\(i)", - processIdentifier: pid_t(1000 + i), - isActive: i == 0 + name: "App\(index)", + bundleIdentifier: "com.example.app\(index)", + processIdentifier: pid_t(1000 + index), + isActive: index == 0 ) }