diff --git a/.swiftlint.yml b/.swiftlint.yml index 03dedf2b..31374f05 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -43,6 +43,10 @@ only_rules: # the declaration. - opening_brace + # Prefer `.zero` over explicit init with zero parameters (e.g., `CGPoint.zero` + # over `CGPoint(x: 0, y: 0)`). + - prefer_zero_over_explicit_init + # Files should have a single trailing newline. - trailing_newline