class RuboCop::Cop::Style::Documentation
def check(node, body)
def check(node, body) return if namespace?(body) return if documentation_comment?(node) return if constant_allowed?(node) return if nodoc_self_or_outer_module?(node) return if include_statement_only?(body) range = range_between(node.loc.expression.begin_pos, node.loc.name.end_pos) message = format(MSG, type: node.type, identifier: identifier(node)) add_offense(range, message: message) end