checkstyle: Finally add proper indentation checks

Somewhat painful conversion, but should go much smoother from here
onward.
This commit is contained in:
Daniel Martí 2015-12-29 22:00:23 +01:00
parent dd4420965d
commit 9efe173380
22 changed files with 725 additions and 716 deletions

View File

@ -67,7 +67,8 @@ public class TabManager {
@Override
public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) {
}
}));
})
);
}
}

View File

@ -242,9 +242,9 @@ public class DBHelper extends SQLiteOpenHelper {
);
}
private void insertRepo(
SQLiteDatabase db, String name, String address, String description,
String pubKey, int version, int inUse, int priority) {
private void insertRepo(SQLiteDatabase db, String name, String address,
String description, String pubKey, int version, int inUse,
int priority) {
ContentValues values = new ContentValues();
values.put(RepoProvider.DataColumns.ADDRESS, address);

View File

@ -150,9 +150,9 @@ public class TestUtils {
* {@link org.fdroid.fdroid.receiver.PackageAddedReceiver}. This will in turn update the
* "installed apps" table in the database.
*/
public static void installAndBroadcast(
MockContextSwappableComponents context, MockInstallablePackageManager pm,
String appId, int versionCode, String versionName) {
public static void installAndBroadcast(MockContextSwappableComponents context,
MockInstallablePackageManager pm, String appId,
int versionCode, String versionName) {
context.setPackageManager(pm);
pm.install(appId, versionCode, versionName);
@ -165,9 +165,9 @@ public class TestUtils {
/**
* @see org.fdroid.fdroid.TestUtils#installAndBroadcast(mock.MockContextSwappableComponents, mock.MockInstallablePackageManager, String, int, String)
*/
public static void upgradeAndBroadcast(
MockContextSwappableComponents context, MockInstallablePackageManager pm,
String appId, int versionCode, String versionName) {
public static void upgradeAndBroadcast(MockContextSwappableComponents context,
MockInstallablePackageManager pm, String appId,
int versionCode, String versionName) {
/*
removeAndBroadcast(context, pm, appId);
installAndBroadcast(context, pm, appId, versionCode, versionName);

View File

@ -41,6 +41,14 @@
<!--<module name="MethodLength" />-->
<!--<module name="ParameterNumber" />-->
<module name="Indentation">
<property name="basicOffset" value="4"/>
<property name="braceAdjustment" value="0"/>
<property name="caseIndent" value="4"/>
<property name="throwsIndent" value="8"/>
<property name="lineWrappingIndentation" value="8"/>
<property name="arrayInitIndent" value="4"/>
</module>
<module name="EmptyLineSeparator">
<property name="allowNoEmptyLineBetweenFields" value="true" />
<property name="allowMultipleEmptyLines" value="false" />