Module: RuboCop::Cop::Homebrew::SimpleExpression Private

Extended by:
NodePattern::Macros
Included in:
SimpleInterpolation, SimpleTernary, SimpleTypeAssertion
Defined in:
rubocops/shared/simple_expression.rb,
sorbet/rbi/dsl/rubo_cop/cop/homebrew/simple_expression.rbi

Overview

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

Keep branching, operators and multi-step computations out of inline expressions. Allow up to three calls and argument values, including inside deferred blocks. A nested call counts towards the limit once, even when passed as an argument. Parentheses and freezing a value do not add to the count.

Constant Summary collapse

MAX_VALUE_PARTS =

This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.

3

Instance Method Summary collapse

Instance Method Details

#integer_literal?(node, **kwargs, &block) ⇒ T.untyped

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

Returns:

  • (T.untyped)


10
# File 'sorbet/rbi/dsl/rubo_cop/cop/homebrew/simple_expression.rbi', line 10

def integer_literal?(node, **kwargs, &block); end

#literal_or_reference?(node, **kwargs, &block) ⇒ T.untyped

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

Returns:

  • (T.untyped)


13
# File 'sorbet/rbi/dsl/rubo_cop/cop/homebrew/simple_expression.rbi', line 13

def literal_or_reference?(node, **kwargs, &block); end

#static_expression?(node, **kwargs, &block) ⇒ T.untyped

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

Returns:

  • (T.untyped)


16
# File 'sorbet/rbi/dsl/rubo_cop/cop/homebrew/simple_expression.rbi', line 16

def static_expression?(node, **kwargs, &block); end