Class: Shirobai::Cop::Metrics::PerceivedComplexity

Inherits:
RuboCop::Cop::Base
  • Object
show all
Extended by:
RuboCop::ExcludeLimit
Includes:
RuboCop::Cop::AllowedMethods, RuboCop::Cop::AllowedPattern, ComplexityBase
Defined in:
lib/shirobai/cop/metrics/perceived_complexity.rb

Overview

Drop-in Rust reimplementation of ‘Metrics/PerceivedComplexity`.

Constant Summary collapse

MSG =
"Perceived complexity for `%<method>s` is too high. [%<complexity>d/%<max>d]"

Class Method Summary collapse

Methods included from ComplexityBase

#on_new_investigation

Class Method Details

.badgeObject



20
# File 'lib/shirobai/cop/metrics/perceived_complexity.rb', line 20

def self.badge = RuboCop::Cop::Badge.parse("Metrics/PerceivedComplexity")

.cop_nameObject



19
# File 'lib/shirobai/cop/metrics/perceived_complexity.rb', line 19

def self.cop_name = "Metrics/PerceivedComplexity"