The rule ImmutableField had a similar challenge like UnusedPrivateField had before #4100: It has a property ignoredAnnotations that we needed to update to consider all possible Java frameworks.
However with #4018 ImmutableField now
only considers fields, that are initialized once and never changed - either in the constructor or in the declaration.
If the field is not initialized at all (which is the typical case when a framework will set the value by reflection), the rule won't trigger now for such fields.
The property ignoredAnnotations is still there, but maybe it can be deprecated and eventually removed?
We can think for the next version about removing/deprecating the property ignoredAnnotations for this rule entirely. Not sure about the class-level lombok annotations though...
(#4018 (review))
Having less properties makes the rule easier to use and avoids confusion when this property is needed.
The rule ImmutableField had a similar challenge like UnusedPrivateField had before #4100: It has a property
ignoredAnnotationsthat we needed to update to consider all possible Java frameworks.However with #4018 ImmutableField now
The property
ignoredAnnotationsis still there, but maybe it can be deprecated and eventually removed?(#4018 (review))
Having less properties makes the rule easier to use and avoids confusion when this property is needed.