Static Analysis too Aggressive

See attached code fragment with static analysis Notes from within RubyMine

The method has one argument - files_z, which the static analyzer claims can be uninitialized.

Also, the local variable priort is clearly initialized, but is apparently tainted enough by association with files_z through fz, that the static analyzer claims it can be uninitialized.

----

The static analyzer is a very useful feature of RubyMine, but too many messages can reduce its usefulness.

Bob G



Attachment(s):
AggressiveStaticAnalysis.jpg
0
Avatar
Permanently deleted user

Hello Bob,

This is a bug, could you please create an issue at http://youtrack.jetbrains.net/issues/RUBY with problem description and code sample attached as text instead of screenshot?
In this case you'll get notified once it is fixed.

Thanks in advance,
Oleg

0

请先登录再写评论。