Skip to content

Commit

Permalink
Fixed SwiftLint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
austincondiff committed Jul 29, 2024
1 parent 01a5645 commit 6f48186
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions CodeEdit/Utils/Formatters/RegexFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,20 @@ class RegexFormatter: Formatter {
return formatString(string)
}

override func getObjectValue(_ obj: AutoreleasingUnsafeMutablePointer<AnyObject?>?,
for string: String,
errorDescription error: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool {
override func getObjectValue(
_ obj: AutoreleasingUnsafeMutablePointer<AnyObject?>?,
for string: String,
errorDescription error: AutoreleasingUnsafeMutablePointer<NSString?>?
) -> Bool {
obj?.pointee = formatString(string) as NSString
return true
}

override func isPartialStringValid(_ partialString: String,
newEditingString: AutoreleasingUnsafeMutablePointer<NSString?>?,
errorDescription error: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool {
override func isPartialStringValid(
_ partialString: String,
newEditingString: AutoreleasingUnsafeMutablePointer<NSString?>?,

Check failure on line 44 in CodeEdit/Utils/Formatters/RegexFormatter.swift

View workflow job for this annotation

GitHub Actions / SwiftLint / SwiftLint

Function parameters should be aligned vertically if they're in multiple lines in a declaration (vertical_parameter_alignment)
errorDescription error: AutoreleasingUnsafeMutablePointer<NSString?>?

Check failure on line 45 in CodeEdit/Utils/Formatters/RegexFormatter.swift

View workflow job for this annotation

GitHub Actions / SwiftLint / SwiftLint

Function parameters should be aligned vertically if they're in multiple lines in a declaration (vertical_parameter_alignment)
) -> Bool {
let formatted = formatString(partialString)
newEditingString?.pointee = formatted as NSString
return formatted == partialString
Expand Down

0 comments on commit 6f48186

Please sign in to comment.