You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should add a rule to SwiftLint via PR that allows linting type declarations, in particular the definition of type inheritance, protocol conformance and generic where clauses as well as the opening { of the type.
This cannot be linted using a regular expression with reasonable complexity and hence needs to be implemented in code. Once we implemented this we should send it as a PR to the main SwiftLint repo and see if they would like to add it. Hence we should think about configuration options, for which I propse the following:
An option for configuring the minimum number of protocols and/or inherited types that are required before wrapping them on their own lines.
An option for configuring the indentation of each protocol and inherited type, if present, relative to the indentation of the type declaration.
An option for configuring the minimum number of where clauses that are required before wrapping them on their own lines.
An option for configuring the indentation of the where keyword, if present, relative to the indentation of the type declaration.
An option for configuring the indentation of each where clause, if present, relative to the indentation of the where keyword.
If we can implement support for auto-fixing violations with reasonable effort we should do so.
The text was updated successfully, but these errors were encountered:
We should add a rule to SwiftLint via PR that allows linting type declarations, in particular the definition of type inheritance, protocol conformance and generic where clauses as well as the opening
{
of the type.This cannot be linted using a regular expression with reasonable complexity and hence needs to be implemented in code. Once we implemented this we should send it as a PR to the main SwiftLint repo and see if they would like to add it. Hence we should think about configuration options, for which I propse the following:
where
keyword, if present, relative to the indentation of the type declaration.where
keyword.If we can implement support for auto-fixing violations with reasonable effort we should do so.
The text was updated successfully, but these errors were encountered: