Document FormulaAudit::ComponentsRedundancy.
This commit is contained in:
parent
924fc47f0f
commit
69a0e3fb61
@ -5,13 +5,14 @@ require "rubocops/extend/formula"
|
|||||||
module RuboCop
|
module RuboCop
|
||||||
module Cop
|
module Cop
|
||||||
module FormulaAudit
|
module FormulaAudit
|
||||||
# This cop checks if redundant components are present and other component errors.
|
# This cop checks if redundant components are present and for other component errors.
|
||||||
#
|
#
|
||||||
# - `url|checksum|mirror` should be inside `stable` block
|
# - `url|checksum|mirror` should be inside `stable` block
|
||||||
# - `head` and `head do` should not be simultaneously present
|
# - `head` and `head do` should not be simultaneously present
|
||||||
# - `bottle :unneeded`/`:disable` and `bottle do` should not be simultaneously present
|
# - `bottle :unneeded`/`:disable` and `bottle do` should not be simultaneously present
|
||||||
# - `stable do` should not be present without a `head` or `devel` spec
|
# - `stable do` should not be present without a `head` or `devel` spec
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
class ComponentsRedundancy < FormulaCop
|
class ComponentsRedundancy < FormulaCop
|
||||||
HEAD_MSG = "`head` and `head do` should not be simultaneously present"
|
HEAD_MSG = "`head` and `head do` should not be simultaneously present"
|
||||||
BOTTLE_MSG = "`bottle :modifier` and `bottle do` should not be simultaneously present"
|
BOTTLE_MSG = "`bottle :modifier` and `bottle do` should not be simultaneously present"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user