codacy - ignored "Avoid unnecessary comparisons in boolean expressions" pattern
34 views
Skip to first unread message
lodici
unread,
Jun 18, 2017, 10:38:20 AM6/18/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Magarena
This is flagging cases like isBusy == false - I blow hot and cold on whether this is clearer than !isBusy. Probably better would be isNotBusy but sometimes it is not possible to do that if dealing with a core Java methods using boolean arguments. Either way I don't think it is a high priority so have disabled the pattern - Avoid unnecessary comparisons in boolean expressions - for now.