Skip to content

Commit

Permalink
Migrate ABC size doc from Markdown to AsciiDoc for Antora
Browse files Browse the repository at this point in the history
Follow up to rubocop#10076.
  • Loading branch information
koic committed Sep 15, 2021
1 parent 9f20b87 commit 90cace7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/rubocop/cop/metrics/abc_size.rb
Expand Up @@ -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.
Expand All @@ -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

Expand Down

0 comments on commit 90cace7

Please sign in to comment.