mgolokhov / dodroid

May the knowledge be with you!
MIT License
20 stars 12 forks source link

squid:S1213 - The members of an interface declaration or class should appear in a pre-defined order #83

Closed georgekankava closed 6 years ago

georgekankava commented 8 years ago

This pull request is focused on resolving occurrence of Sonar rule squid:S1213 - The members of an interface declaration or class should appear in a pre-defined order. This pull request removes 45 minutes of technical debt. You can find more information about the issue here: https://dev.eclipse.org/sonar/rules/show/squid:S1213 Please let me know if you have any questions. George Kankava

mgolokhov commented 8 years ago

Recommendation from Android Team https://source.android.com/source/code-style.html#define-fields-in-standard-places

CREATOR object is a part of Parcelable interface and logically it should be near writeToParcel() function and custom constructor.

JaeW commented 8 years ago

Helpful tool once you have come to a conclusion about arrangement rules. https://www.jetbrains.com/help/idea/2016.1/rearranging-code-using-arrangement-rules.html