From the Rubocop documentation:
RuboCop is a Ruby static code analyzer. Out of the box it will enforce many of the guidelines outlined in the community Ruby Style Guide.
The Ruby Style Guide "comment" section doesn't use the phrase "Missing top-level class documentation comment" but from reading the guide section on comments, you can quickly infer from the examples that commenting classes and modules is recommended.
The reason is, when using rdoc
, the comments for the classes/modules will be used to generate the reference to the code, something that is important whether you're writing code for yourself, for a team or for general release by others.
WelcomeController
. Add a comment above the class definition to prevent this message. There may also be other ways to get rid of this message. See documentation for rubocop for details. – vee Apr 6 '16 at 17:12#:nodoc:
at the top of the file – Andrey Deineko Apr 6 '16 at 18:19