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

1 comment
Comment actions Permalink

Hello Bob,

This is a bug, could you please create an issue at 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,


Please sign in to leave a comment.