Where can I find checkstyle config for Android Coding Style?-ThrowExceptions

Exception or error:

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?

How to solve:

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:

###

Here is the checkstyle configuration used for Picasso by Square folks:
https://github.com/square/picasso/blob/master/checkstyle.xml

Here is Google’s Java Style Checkstyle Coverage:
http://checkstyle.sourceforge.net/google_style.html

###

CheckStyle for Android:

  • CheckStyle.
  • PMD.
  • Findbugs.

To add a dependency to gradle: Gradle Plugin for Android

More info on the Blog

###

Here you are:

http://source.android.com/source/code-style.html

I have also gone through their source (GrepCode is good) to look at their styling. You could create a custom Eclipse formatter based on these rules.

EDIT

Very sorry did not see your link above. I am unaware of anything like this. Sorry I could not be of more help.

Leave a Reply

Your email address will not be published. Required fields are marked *