Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new rule to SwiftLint for enforcing initialization using .init(), if possible #70

Open
svenmuennich opened this issue Nov 3, 2020 · 0 comments
Labels
enhancement Issues that describe new features or improvements to existing features.

Comments

@svenmuennich
Copy link
Member

We decided to initialize new values/instances using .init() wherever possible (i.e. where the compile can infer the concrete type).

To make enforcing this rule easier we should add a new rule to SwiftLint that lints this. It would also be nice to have auto correction for this, which should be very easy to accomplish.

@svenmuennich svenmuennich added the enhancement Issues that describe new features or improvements to existing features. label Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues that describe new features or improvements to existing features.
Projects
None yet
Development

No branches or pull requests

1 participant