Skip to content
Snippets Groups Projects
Commit 8e55d7fd authored by Markus Reiter's avatar Markus Reiter
Browse files

Document `FormulaAudit::KegOnly`.

parent 7185e4c9
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,9 @@ require "rubocops/extend/formula"
module RuboCop
module Cop
module FormulaAudit
# This cop makes sure that a `keg_only` reason has the correct format.
#
# @api private
class KegOnly < FormulaCop
def audit_formula(_node, _class_node, _parent_class_node, body_node)
keg_only_node = find_node_method_by_name(body_node, :keg_only)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment