Skip to content

Commit af0f71d

Browse files
committed
Fix linting errors
1 parent c68853d commit af0f71d

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

Mintfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
realm/SwiftLint@0.43.1
1+
realm/SwiftLint@0.52.2

Sources/MSLFoundation/BackgroundTaskManager/BackgroundTaskManager.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ public final class BackgroundTaskManager {
2626
/// The current background refresh task that woke up the application
2727
private var backgroundTask: BGAppRefreshTask?
2828

29-
/// Create a new BackgroundTaskManager with a unique identifier. This unique identifier will be used when tasks are executed in the background.
29+
/// Create a new BackgroundTaskManager with a unique identifier.
30+
/// This unique identifier will be used when tasks are executed in the background.
3031
public init(
3132
taskId: String
3233
) {

Sources/MSLSwiftUI/FormValidation/ValidatedPropertyWrapper.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public struct FormFieldValidated<Value: Equatable>: ValidatedProtocol {
7272
stringValue.isEmpty == true
7373
{
7474
// Assign to `nil` when string is empty
75+
// swiftlint:disable:next force_cast
7576
self.value = assignNilIfEmpty(stringValue) as! Value
7677
} else {
7778
self.value = newValue

Sources/MSLXCTest/Builder.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ public extension Buildable {
3737
/// - keyPath: The key path of the collection property to add to.
3838
/// - value: The element to add to the collection.
3939
/// - Returns: A copy of the object with the updated collection property.
40-
func add<PropertyType: RangeReplaceableCollection>(_ keyPath: WritableKeyPath<Self, PropertyType>, _ value: PropertyType.Element) -> Self {
40+
func add<PropertyType: RangeReplaceableCollection>(
41+
_ keyPath: WritableKeyPath<Self, PropertyType>,
42+
_ value: PropertyType.Element
43+
) -> Self {
4144
var copy = self
4245
copy[keyPath: keyPath].append(value)
4346
return copy
@@ -49,7 +52,10 @@ public extension Buildable {
4952
/// - keyPath: The key path of the collection property to add to.
5053
/// - function: A function that returns the element to add to the collection.
5154
/// - Returns: A copy of the object with the updated collection property.
52-
func add<PropertyType: RangeReplaceableCollection>(_ keyPath: WritableKeyPath<Self, PropertyType>, _ function: () -> PropertyType.Element) -> Self {
55+
func add<PropertyType: RangeReplaceableCollection>(
56+
_ keyPath: WritableKeyPath<Self, PropertyType>,
57+
_ function: () -> PropertyType.Element
58+
) -> Self {
5359
var copy = self
5460
copy[keyPath: keyPath].append(function())
5561
return copy

0 commit comments

Comments
 (0)