From 4de2d312abbb5d0132e86065165099a48afcf522 Mon Sep 17 00:00:00 2001 From: david-swift Date: Wed, 5 Nov 2025 13:04:53 +0100 Subject: [PATCH] Fix style --- Sources/Adwaita/View/ToggleGroup+.swift | 2 +- Sources/Generation/Extensions/String.swift | 10 +++++----- Sources/Generation/GIR/Property.swift | 2 +- Sources/Generation/WidgetConfiguration.swift | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Sources/Adwaita/View/ToggleGroup+.swift b/Sources/Adwaita/View/ToggleGroup+.swift index c53cc55..44a1c7a 100644 --- a/Sources/Adwaita/View/ToggleGroup+.swift +++ b/Sources/Adwaita/View/ToggleGroup+.swift @@ -97,7 +97,7 @@ public protocol ToggleGroupItem: Identifiable where Self.ID: CustomStringConvert /// The item's icon. var icon: Icon? { get } - /// Whether to show the label in the UI (the identifier's string conversion). + /// Whether to show the label in the UI (the identifier's string conversion). /// /// Otherwise, it will be used as the tooltip. var showLabel: Bool { get } diff --git a/Sources/Generation/Extensions/String.swift b/Sources/Generation/Extensions/String.swift index 321e331..d8d59f9 100644 --- a/Sources/Generation/Extensions/String.swift +++ b/Sources/Generation/Extensions/String.swift @@ -80,7 +80,7 @@ extension String: @retroactive CodingKey { return type } - /// Apply the documentation regex. + /// Apply the documentation regex. /// - Parameter configuration: The generation configuration. /// - Returns: The documentation with the regex applied. func applyDocRegex(configuration: GenerationConfiguration) -> String { @@ -99,7 +99,7 @@ extension String: @retroactive CodingKey { } } - /// Apply the regex to remove additional documentation content. + /// Apply the regex to remove additional documentation content. /// - Returns: The documentation with the regex applied. func applyExtraContentRegex() throws -> String { let extraContent = try Regex("##?(.|\\n)*") @@ -115,7 +115,7 @@ extension String: @retroactive CodingKey { } } - /// Translate property definitions into Swift references. + /// Translate property definitions into Swift references. /// - Parameter configuration: The generation configuration. /// - Returns: The documentation with the regex applied. func applyPropertyRegex(configuration: GenerationConfiguration) throws -> String { @@ -127,7 +127,7 @@ extension String: @retroactive CodingKey { } } - /// Translate booleans into inline Markdown code with Swift booleans. + /// Translate booleans into inline Markdown code with Swift booleans. /// - Returns: The documentation with the regex applied. func applyBooleanRegex() throws -> String { var modified = self @@ -138,7 +138,7 @@ extension String: @retroactive CodingKey { return modified } - /// Remove broken HTML tags. + /// Remove broken HTML tags. /// - Returns: The documentation with the regex applied. func applyHTMLRegex() throws -> String { let picture = try Regex(".*?") diff --git a/Sources/Generation/GIR/Property.swift b/Sources/Generation/GIR/Property.swift index 2c75770..7ba7752 100644 --- a/Sources/Generation/GIR/Property.swift +++ b/Sources/Generation/GIR/Property.swift @@ -27,7 +27,7 @@ struct Property: Decodable { /// Whether the property is deprecated. var deprecated: Bool? - /// Whether the property is itself a view. + /// Whether the property is itself a view. var isView: Bool { (self.type?.isWidget ?? false) || (self.type?.isMenu ?? false) } diff --git a/Sources/Generation/WidgetConfiguration.swift b/Sources/Generation/WidgetConfiguration.swift index bd1ef7e..498d4c9 100644 --- a/Sources/Generation/WidgetConfiguration.swift +++ b/Sources/Generation/WidgetConfiguration.swift @@ -36,7 +36,7 @@ struct WidgetConfiguration { var lastProperties: [String] = [] /// Manually add setters which do not follow common practices. var setters: [String] = [] - /// Whether the initializer of the widget should not be public in Swift. + /// Whether the initializer of the widget should not be public in Swift. var internalInitializer = false /// The configuration for a binding.