nbadal
09/27/2022, 6:44 PMRule(id: String) has been removed at some point (though I do see the second parameter has a default). If I try to load a pre-0.44 ruleset JAR into 0.44-0.47, it complains of:
java.lang.NoSuchMethodError: 'void com.pinterest.ktlint.core.Rule. (java.lang.String)'
Perhaps it requires a @JvmOverloads annotation?nbadal
09/27/2022, 6:50 PMno-var rule for testing, built with 0.39Sha Sha Chu
09/27/2022, 7:29 PMnbadal
09/27/2022, 7:32 PMRule(String)
because Rule in 0.44 doesn't have JvmOverloads that method doesn't exist anymore in the bytecode. Newer kotlin rules that use Rule("example") get compiled to call Rule(string, Set) due to how defaults worknbadal
09/27/2022, 7:33 PMPaul Dingemans
09/28/2022, 4:25 PM