Currently SillyEqulasCheck and CollectionInappropriateCallsCheck are not considering lombok.val as inclusive/inferred type and throws an rule violation whenever the following is executed.
String x ="Hello World"; lombok.val y = "Hello World"; boolean z = x.equals(y); // Should be No Issue but S2159 (SillyEqualsCheck) throws up
My question is How can we include lombok.val as inferred type for either inclusion in collection or equality check as demonstrated above.
Could we just add lombok.val as another Type and if so what javaType does it belong to ; should we create a LombokType just so Type system can be used for all the rules.
Please share thoughts on how to include these