Customizing a builtin rule

I’ve opened a ticket to track this need to customize S2259. I unfortunately cannot give you an ETA for it at the moment.

In summary, there is no easy way to do what you are trying to do. Depending on how pressing it is and how much resources you can invest, you can have a look at the Java analyzer itself, as it is open-source, and in principle, you could open a PR on it. We unfortunately cannot provide much support for this path, though, so if it is not urgent, you may want to watch the ticket for the time being.

2 Likes