Class: Hashira::Smells::DuplicateMethodCall

Inherits:
Check
  • Object
show all
Defined in:
lib/hashira/smells/duplicate_method_call.rb

Constant Summary collapse

LIMIT =
1
MINTS =
%i[new dup clone allocate rand srand].freeze
SOURCES =
%w[SecureRandom Random].freeze
LITERALS =
[
  Prism::StringNode, Prism::SymbolNode, Prism::ArrayNode, Prism::HashNode,
  Prism::IntegerNode, Prism::FloatNode, Prism::RegularExpressionNode
].freeze

Method Summary

Methods inherited from Check

#finding, #initialize

Constructor Details

This class inherits a constructor from Hashira::Smells::Check