diff --git a/.swiftlint.yml b/.swiftlint.yml index ef8311c1..4554d747 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -54,6 +54,9 @@ only_rules: # `if let foo = foo`). - shorthand_optional_binding + # Prefer `min(by:)` / `max(by:)` over `sorted { ... }.first` / `.last`. + - sorted_first_last + # Files should have a single trailing newline. - trailing_newline