Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Having a lot of warnings can confuse us, so it's great that we can have a common set of rules that we agree on
unused_closure_parameter
This can cause issue like realm/SwiftLint#1175 when the function is generic
closure_parameter_position
This rule is good. However in cases similar to Cartography when the list of closure parameters is long, we tend to move them to a new line
empty_parentheses_with_trailing_closure
This rule is good. However in cases we have a constructor that accepts a closure, we tend to call it like
let person = Person() { ... }
instead oflet person = Person { ... }
which makes the intention more clear that we 're constructing an objectredundant_string_enum_value
I have no strong opinion on this actually. It is redundant in a way, but more explicit in another way 🤔
min_length
This is good. But since it confuses
public typealias T = U
with variable name constraints, so I reduce it to 1 for now