checkstyle: Finally add proper indentation checks
Somewhat painful conversion, but should go much smoother from here onward.
This commit is contained in:
parent
dd4420965d
commit
9efe173380
@ -67,7 +67,8 @@ public class TabManager {
|
||||
@Override
|
||||
public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) {
|
||||
}
|
||||
}));
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user