Rubymine inspection of library class initialization parameters


I've been using Rubymine for a few months and the project I'm porting uses a class in the lib directory of the Rails app but the inspection done by Rubymine flags the argument passed to the constructor as 'extra arguments' . The code executes without errors but Rubymine doesn't like the syntax.  How can I make Rubymine inspector not flag this as an error?

Here's the screen shot of one of the source code indicted by one of these (false) inspection errors:

And here's a screen shot of my initialize() method in the library class Semester.rb :

Any ideas on how to make the inspector happy with this?


1 comment
Comment actions Permalink


could you please specify your RubyMine version? Does the same happen in 2019.1 version? In addition, a project/code sample for reproduce would be great.


Please sign in to leave a comment.