diff --git a/xcode/.swiftlint.yml b/xcode/.swiftlint.yml index 6acd37c..d502145 100644 --- a/xcode/.swiftlint.yml +++ b/xcode/.swiftlint.yml @@ -247,7 +247,7 @@ custom_rules: parameter_repetition: name: "Parameter repetition" - regex: 'func ((\w+([A-Z]\w+))|(\w+)) *(<.+>)? *\( *(?i)(\3|\4):' + regex: 'func ((\w+([A-Z]\w+))|(\w+)) *(<[^>]+>)? *\( *(?i)(\3|\4):' message: "The parameter name is actually used in the function name. Use _ instead." severity: error