From bbf0b1e3ba331e852f74c01137cd780c97fdd13d Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Sun, 28 Jun 2020 22:06:03 +0200 Subject: [PATCH] Add a way to ensure we have `@JsonClass(generateAdapter = false)` for `enum class`. This is not ideal, but this will save us in the future. --- tools/check/forbidden_strings_in_code.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/check/forbidden_strings_in_code.txt b/tools/check/forbidden_strings_in_code.txt index d46bdfa062..0ec15dead2 100644 --- a/tools/check/forbidden_strings_in_code.txt +++ b/tools/check/forbidden_strings_in_code.txt @@ -162,3 +162,6 @@ Formatter\.formatShortFileSize===1 ### Use kotlin stdlib to test or compare strings # DISABLED # android\.text\.TextUtils + +### This is not a rule, but a warning: the number of "enum class" has changed. For Json classes, it is mandatory that they have `@JsonClass(generateAdapter = false)`. If it is ok, change the value in file forbidden_strings_in_code.txt +enum class===69 \ No newline at end of file