diff --git a/Source/SwiftLintFramework/Rules/VoidReturnRule.swift b/Source/SwiftLintFramework/Rules/VoidReturnRule.swift index 97ab87b23..22897cb85 100644 --- a/Source/SwiftLintFramework/Rules/VoidReturnRule.swift +++ b/Source/SwiftLintFramework/Rules/VoidReturnRule.swift @@ -58,7 +58,7 @@ public struct VoidReturnRule: ConfigurationProviderRule, CorrectableRule { return file.matchPattern(pattern, excludingSyntaxKinds: kinds, excludingPattern: excludingPattern) { $0.rangeAt(1) }.flatMap { let parensRegex = NSRegularExpression.forcePattern(parensPattern) - return parensRegex.firstMatch(in: file.contents, range: $0)?.range + return parensRegex.firstMatch(in: file.contents, options: [], range: $0)?.range } }