You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, you can use an annotation to suppress part of the code. But it suppresses everything! Unfortunately, sometimes this is too much and hides other problems.
It would be nice if someone could have an annotation like this:
Basically the idea would be to just match on the offending class (at least as a start, since ultimately that is always available). Maybe it should allow glob patterns. In some cases there may be more than one violation in a piece of code, so either an array or ensuring repeating annotation (java 8+ only) is handled properly might work.
This is somewhat related to #82, in the sense that we find ourselves doing very bad things, like actually restructuring code in an unnatural way, just to workaround the limitations of a static analysis tool. I have seen this happen several times just this week!
On the other hand maybe its simpler and we can easily extend the annotation support we have to do this, since the name can just be a convention or something (accessed via reflection). Can we do it without loading the classes themselves? That would be the best, but I am not sure if its possible.
The text was updated successfully, but these errors were encountered:
Today, you can use an annotation to suppress part of the code. But it suppresses everything! Unfortunately, sometimes this is too much and hides other problems.
It would be nice if someone could have an annotation like this:
Basically the idea would be to just match on the offending class (at least as a start, since ultimately that is always available). Maybe it should allow glob patterns. In some cases there may be more than one violation in a piece of code, so either an array or ensuring repeating annotation (java 8+ only) is handled properly might work.
This is somewhat related to #82, in the sense that we find ourselves doing very bad things, like actually restructuring code in an unnatural way, just to workaround the limitations of a static analysis tool. I have seen this happen several times just this week!
On the other hand maybe its simpler and we can easily extend the annotation support we have to do this, since the name can just be a convention or something (accessed via reflection). Can we do it without loading the classes themselves? That would be the best, but I am not sure if its possible.
The text was updated successfully, but these errors were encountered: