From 90cace7eca2ff0484af1267e14e21dbdfdc828bf Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Wed, 15 Sep 2021 03:04:33 +0900 Subject: [PATCH] Migrate ABC size doc from Markdown to AsciiDoc for Antora Follow up to #10076. --- lib/rubocop/cop/metrics/abc_size.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/rubocop/cop/metrics/abc_size.rb b/lib/rubocop/cop/metrics/abc_size.rb index a82e5019934..b1249ccb294 100644 --- a/lib/rubocop/cop/metrics/abc_size.rb +++ b/lib/rubocop/cop/metrics/abc_size.rb @@ -8,6 +8,12 @@ module Metrics # (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric # and https://en.wikipedia.org/wiki/ABC_Software_Metric. # + # Interpreting ABC size: + # + # * <= 17 satisfactory + # * 18..30 unsatisfactory + # * > 30 dangerous + # # You can have repeated "attributes" calls count as a single "branch". # For this purpose, attributes are any method with no argument; no attempt # is meant to distinguish actual `attr_reader` from other methods. @@ -28,12 +34,6 @@ module Metrics # end # # This cop also takes into account `IgnoredMethods` (defaults to `[]`) - # - # ## Interpreting ABCSize - # - # - <= 17 satisfactory - # - 18..30 unsatisfactory - # - > 30 dangerous class AbcSize < Base include MethodComplexity