From 307625390319d9e2db39f5662da4055b44d805bc Mon Sep 17 00:00:00 2001 From: "Felix M." Date: Thu, 8 Oct 2026 22:02:28 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=8E=A8=20::=20Fix=20SwiftFormat=20Swi?= =?UTF-8?q?ft=20Testing=20violations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove redundant `@Suite` attributes flagged by `redundantSwiftTestingSuite`. Disable `swiftTestingTestCaseNames` in the snapshot tests, as the test names are used for the snapshot reference file names. Co-Authored-By: Claude Opus 5.5 --- .../SnapshotTests/GradientProgressBarSnapshotTests.swift | 3 ++- .../GradientProgressBarViewStyleSnapshotTests.swift | 3 ++- .../UnitTests/GradientProgressBarViewModelTests.swift | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Tests/GradientProgressBarTests/SnapshotTests/GradientProgressBarSnapshotTests.swift b/Tests/GradientProgressBarTests/SnapshotTests/GradientProgressBarSnapshotTests.swift index f91fd40..ea47998 100644 --- a/Tests/GradientProgressBarTests/SnapshotTests/GradientProgressBarSnapshotTests.swift +++ b/Tests/GradientProgressBarTests/SnapshotTests/GradientProgressBarSnapshotTests.swift @@ -12,9 +12,10 @@ import Testing import UIKit @testable import GradientProgressBar +// swiftformat:disable swiftTestingTestCaseNames + /// - Note: For more readable reference file names, we don't use raw identifiers for test names here. @MainActor -@Suite struct GradientProgressBarSnapshotTests { // MARK: - Config diff --git a/Tests/GradientProgressBarTests/SnapshotTests/GradientProgressBarViewStyleSnapshotTests.swift b/Tests/GradientProgressBarTests/SnapshotTests/GradientProgressBarViewStyleSnapshotTests.swift index 979d68a..5631cc4 100644 --- a/Tests/GradientProgressBarTests/SnapshotTests/GradientProgressBarViewStyleSnapshotTests.swift +++ b/Tests/GradientProgressBarTests/SnapshotTests/GradientProgressBarViewStyleSnapshotTests.swift @@ -12,9 +12,10 @@ import SwiftUI import Testing @testable import GradientProgressBar +// swiftformat:disable swiftTestingTestCaseNames + /// - Note: For more readable reference file names, we don't use raw identifiers for test names here. @MainActor -@Suite struct GradientProgressBarViewStyleSnapshotTests { // swiftlint:disable:previous type_name diff --git a/Tests/GradientProgressBarTests/UnitTests/GradientProgressBarViewModelTests.swift b/Tests/GradientProgressBarTests/UnitTests/GradientProgressBarViewModelTests.swift index ebc07cc..7eca715 100644 --- a/Tests/GradientProgressBarTests/UnitTests/GradientProgressBarViewModelTests.swift +++ b/Tests/GradientProgressBarTests/UnitTests/GradientProgressBarViewModelTests.swift @@ -11,7 +11,6 @@ import Testing @testable import GradientProgressBar @MainActor -@Suite struct GradientProgressBarViewModelTests { // MARK: - Private Properties From 34b87c17469d24bf9ad0bde8f27eac458ffade17 Mon Sep 17 00:00:00 2001 From: "Felix M." Date: Thu, 8 Oct 2026 22:02:28 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=9A=A8=20::=20Remove=20superfluous=20?= =?UTF-8?q?SwiftLint=20disable=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since SwiftLint 0.63.3, `force_unwrapping` ignores `URL(string:)` calls with literal arguments by default, so the disable command no longer suppresses anything and triggers `superfluous_disable_command`. Co-Authored-By: Claude Opus 5.5 --- .../Scenes/WebViewExample/WebViewExampleViewController.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Example/GradientProgressBarExample/Scenes/WebViewExample/WebViewExampleViewController.swift b/Example/GradientProgressBarExample/Scenes/WebViewExample/WebViewExampleViewController.swift index 8073be6..2d0644f 100644 --- a/Example/GradientProgressBarExample/Scenes/WebViewExample/WebViewExampleViewController.swift +++ b/Example/GradientProgressBarExample/Scenes/WebViewExample/WebViewExampleViewController.swift @@ -22,7 +22,6 @@ final class WebViewExampleViewController: UIViewController { private enum Config { /// The initial URL to load in the web view. static let initialUrl = URL(string: "https://felix.hamburg")! - // swiftlint:disable:previous force_unwrapping /// The duration of the fade-in/-out animation of the progress view. static let fadeDuration: TimeInterval = 0.33