Ruby

Ruby

Made by DeepSource

Missing top-level documentation comment RB-ST1031

Documentation
Minor

Top-level documentation comment should be included in classes and modules. Classes with no body are exempt from the check and so are namespace modules - modules that have nothing in their bodies except classes, other modules, or constant definitions.

The documentation requirement is annulled if the class or module has a "#:nodoc:" comment next to it. Likewise, "#:nodoc: all" does the same for all its children.

Bad practice

class Person
  # ...
end

Recommended

# Description/Explanation of Person class
class Person
  # ...
end