diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 13a1db5..a690976 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,9 +6,8 @@ forking the repository and sending a pull request. When submitting code, please make every effort to follow existing conventions and style in order to keep the code as readable as possible. Please also make -sure your code compiles by running `./gradlew check`. Checkstyle failures -during compilation indicate errors in your style and can be viewed in the -failing project's `build/reports/checkstyle` directory. +sure your code compiles by running `./gradlew build`. For any formatting errors, +run `./gradlew spotlessApply` to fix them. Before your code can be accepted into the project you must also sign the [Individual Contributor License Agreement (CLA)][1]. diff --git a/checkstyle.xml b/checkstyle.xml deleted file mode 100644 index f66aad5..0000000 --- a/checkstyle.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/src/main/java/com/squareup/moshi/recipes/FromJsonWithoutStrings.java b/examples/src/main/java/com/squareup/moshi/recipes/FromJsonWithoutStrings.java index 1241477..4cb7ac4 100644 --- a/examples/src/main/java/com/squareup/moshi/recipes/FromJsonWithoutStrings.java +++ b/examples/src/main/java/com/squareup/moshi/recipes/FromJsonWithoutStrings.java @@ -45,7 +45,6 @@ public final class FromJsonWithoutStrings { new FromJsonWithoutStrings().run(); } - @SuppressWarnings("checkstyle:membername") private static final class EventJson { String title; String begin_date; diff --git a/examples/src/main/java/com/squareup/moshi/recipes/models/BlackjackHand.java b/examples/src/main/java/com/squareup/moshi/recipes/models/BlackjackHand.java index a21d122..6d12b8d 100644 --- a/examples/src/main/java/com/squareup/moshi/recipes/models/BlackjackHand.java +++ b/examples/src/main/java/com/squareup/moshi/recipes/models/BlackjackHand.java @@ -17,7 +17,6 @@ package com.squareup.moshi.recipes.models; import java.util.List; -@SuppressWarnings("checkstyle:membername") public final class BlackjackHand { public final Card hidden_card; public final List visible_cards;