Inspectopedia Help

Incorrect inclusion call

Reports inclusion calls (include, prepend and extend) that reference a class. Inclusion calls are only allowed to reference modules or interfaces.

A quick fix is available to remove the incorrect inclusion call.


class Example # Class 'Object' used in an 'include' call include Object end

After the quick fix:

class Example end

Inspection Details

Available in:

Qodana for Ruby 2023.3, RubyMine 2023.3


Ruby, 233.SNAPSHOT

Last modified: 13 July 2023