🧹 Improvements to SwiftLint
Description
Expand the reach of SwifLint to include:
- Ordering of properties in classes and structs.
- Minimum line size
I looked into SwiftLint and found out it doesn't have rules for ordering properties or setting a minimum line length. This is understandable as it's challenging for SwiftLint to determine whether a line break is intended for improved readability or if it's unnecessary. Here's what I think we should do:
- Update the Code Style Guide docs
- Follow Community Standards: Use common coding standards as a guide.
- Use common sense
However, I would like to suggest that we could enable force_unwrapping and implicit_return. What do you think?
I'm not really a fan of implicit_return, IMHO it makes it more difficult for starters to know when or when not to use a return.
However we should definitely discourage the use of force unwrapping so force_unwrapping should be added.