Fix new swiftformat warnings: convert types used for hosting only static members into enums.

This commit is contained in:
Stefan Ceriu 2023-11-13 13:28:42 +02:00 committed by Stefan Ceriu
parent 259baeaf99
commit a8be8f839b
6 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@ import UIKit
/// is called. The pool contains 3 files.
///
/// `MXLogger` can track and log uncaught exceptions or crashes.
class MXLogger {
enum MXLogger {
/// stderr so it can be restored.
static var stderrSave: Int32 = 0

View File

@ -17,7 +17,7 @@
import SwiftUI
/// Standard constants used across the app's UI.
struct UIConstants {
enum UIConstants {
static let maxContentHeight: CGFloat = 750
/// The padding used between the top of the main content's icon and the navigation bar.

View File

@ -16,7 +16,7 @@
import XCTest
struct Application {
enum Application {
@discardableResult static func launch() -> XCUIApplication {
let app = XCUIApplication()
app.launch()

View File

@ -16,7 +16,7 @@
import Foundation
final class DataProtectionManager {
enum DataProtectionManager {
/// Detects after reboot, before unlocked state. Does this by trying to write a file to the filesystem (to the Caches directory) and read it back.
/// - Parameter containerURL: Container url to write the file.
/// - Returns: true if the state detected

View File

@ -17,7 +17,7 @@
import Foundation
import MatrixRustSDK
class NSELogger {
enum NSELogger {
private static var isConfigured = false
/// Memory formatter, uses exact 2 fraction digits and no grouping

View File

@ -17,7 +17,7 @@
import SnapshotTesting
import XCTest
struct Application {
enum Application {
static func launch(_ identifier: UITestsScreenIdentifier, disableTimelineAccessibility: Bool = true) -> XCUIApplication {
let app = XCUIApplication()