SONARJAVA-6090 Detect usage of io in rule S106#5435
Conversation
asya-vorobeva
left a comment
There was a problem hiding this comment.
Also makes sense to enrich rule description to mention IO.
b018bac to
03705e4
Compare
tomasz-tylenda-sonarsource
left a comment
There was a problem hiding this comment.
LGTM, but please wait for Asya's review.
There was a problem hiding this comment.
I think we can remove in line 49 a check
tree instanceof MemberSelectExpressionTree mset. (which is always met)
Also please don't forget about updating metadata for the rule here.
I’d prefer to keep this as is for a couple of reasons:
Since this is largely a matter of personal style preference and the code is already functional, can we leave it unchanged? |
As for me, looks much more cleaner. But as you wish. (best practices are not dogmatic thing, depends on the situation) About your first point, please believe me: it's much more better to leave the code in the file that you're working with better than before. Sort of cumulative changes, good way to fight with tech debt. :) |
|




No description provided.