Pattern: Missing documentation for method
Issue: -
This rule checks for missing documentation comment for public methods. It can optionally be configured to also require documentation for non-public methods.
# bad
class Foo
def bar
puts baz
end
end
module Foo
def bar
puts baz
end
end
def foo.bar
puts baz
end
# good
class Foo
# Documentation
def bar
puts baz
end
end
module Foo
# Documentation
def bar
puts baz
end
end
# Documentation
def foo.bar
puts baz
end
Attribute | Value |
---|---|
Exclude | spec/**/*, test/**/* |
RequireForNonPublicMethods | false |