Confirmed users
975
edits
| Line 4: | Line 4: | ||
== Installation == | == Installation == | ||
* Open the preferences | |||
* Find "Plugins" in the preferences | |||
* Click "Browse repositories" | |||
* Search for "checkstyle". | |||
* Select CheckStyle-IDEA | |||
* Click "Install plugin" on the right & confirm | |||
* Click restart Android Studio | |||
=== Adding the config file === | === Adding the config file === | ||
* Click the "+" in the Configuration File box | |||
* Open the preferences | |||
* Go to (or search for) "Checkstyle" menu item (it's under "Other Settings") | |||
* Click the plus at the bottom of the "Configuration file" box | |||
http://mxr.mozilla.org/mozilla-central/source/mobile/android/app/checkstyle.xml | * Add a description (e.g. "mozilla") | ||
* Add the path to the checkstyle configuration: <pre>http://mxr.mozilla.org/mozilla-central/source/mobile/android/app/checkstyle.xml</pre> | |||
* Accept | |||
* Click the "Active" checkbox next to the new configuration | |||
* Hit "OK" to close the preferences | |||