There are Coding Conventions for Android. They include some stuff like naming conventions that can be checked using checkstyle.
I've found some config for checkstyle: http://ksoichiro.blogspot.com/2011/05/android-checkstyle.html
But I want to ask if there is some more complete config for checkstyle. Maybe Google provide some official checkstyle config?
In the IDE open Settings and search for Checkstyle. A window is shown that has the option to select our checks. Click on the + button and a window will open which will let us specify the location of the file to be used. Now, we select a configuration XML file and click Next.
Overview. Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. It automates the process of checking Java code to spare humans of this boring (but important) task. This makes it ideal for projects that want to enforce a coding standard.
Checkstyle obtains a configuration from an XML document whose elements specify the configuration's hierarchy of modules and their properties. You provide a file that contains the configuration document when you invoke Checkstyle at the command line, and when you run a Checkstyle task in ant.
Here you can find some that implement http://source.android.com/source/code-style.html although none of them is official.
There is Android Check plugin (https://github.com/noveogroup/android-check).
It has two predefined Checkstyle configurations you can use:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With