diff --git a/app/build.gradle b/app/build.gradle index 51762db75..0299c0fd5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -98,7 +98,7 @@ android { } ext { - checkstyleVersion = '9.3' + checkstyleVersion = '10.0' androidxLifecycleVersion = '2.3.1' androidxRoomVersion = '2.4.2' @@ -121,7 +121,7 @@ configurations { } checkstyle { - getConfigDirectory().set(rootProject.file(".")) + getConfigDirectory().set(rootProject.file("checkstyle")) ignoreFailures false showViolations true toolVersion = checkstyleVersion diff --git a/app/src/main/java/org/schabi/newpipe/local/LocalItemListAdapter.java b/app/src/main/java/org/schabi/newpipe/local/LocalItemListAdapter.java index 5d81c0069..05e2fdac0 100644 --- a/app/src/main/java/org/schabi/newpipe/local/LocalItemListAdapter.java +++ b/app/src/main/java/org/schabi/newpipe/local/LocalItemListAdapter.java @@ -228,6 +228,7 @@ public class LocalItemListAdapter extends RecyclerView.Adapter - - - - - - - - - - - - - - diff --git a/checkstyle.xml b/checkstyle/checkstyle.xml similarity index 94% rename from checkstyle.xml rename to checkstyle/checkstyle.xml index 61145d61f..282358f6a 100644 --- a/checkstyle.xml +++ b/checkstyle/checkstyle.xml @@ -22,7 +22,7 @@ - + @@ -180,12 +180,5 @@ - - - - - - diff --git a/checkstyle/suppressions.xml b/checkstyle/suppressions.xml new file mode 100644 index 000000000..3f31de48a --- /dev/null +++ b/checkstyle/suppressions.xml @@ -0,0 +1,13 @@ + + + + + + + + +