Skip to content

Commit

Permalink
Merge pull request rubocop#11209 from DiegoSPB/fix-11157
Browse files Browse the repository at this point in the history
[fix rubocop#11157] -- Update Registry Docs
  • Loading branch information
koic committed Nov 28, 2022
2 parents 3bd2c22 + f771382 commit 9b5c1d8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/rubocop/cop/registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,27 +72,27 @@ def contains_cop_matching?(names)
#
# @example gives back a correctly qualified cop name
#
# cops = RuboCop::Cop::Cop.all
# cops.
# qualified_cop_name('Layout/EndOfLine') # => 'Layout/EndOfLine'
# registry = RuboCop::Cop::Registry
# registry.qualified_cop_name('Layout/EndOfLine', '') # => 'Layout/EndOfLine'
#
# @example fixes incorrect namespaces
#
# cops = RuboCop::Cop::Cop.all
# cops.qualified_cop_name('Lint/EndOfLine') # => 'Layout/EndOfLine'
# registry = RuboCop::Cop::Registry
# registry.qualified_cop_name('Lint/EndOfLine', '') # => 'Layout/EndOfLine'
#
# @example namespaces bare cop identifiers
#
# cops = RuboCop::Cop::Cop.all
# cops.qualified_cop_name('EndOfLine') # => 'Layout/EndOfLine'
# registry = RuboCop::Cop::Registry
# registry.qualified_cop_name('EndOfLine', '') # => 'Layout/EndOfLine'
#
# @example passes back unrecognized cop names
#
# cops = RuboCop::Cop::Cop.all
# cops.qualified_cop_name('NotACop') # => 'NotACop'
# registry = RuboCop::Cop::Registry
# registry.qualified_cop_name('NotACop', '') # => 'NotACop'
#
# @param name [String] Cop name extracted from config
# @param path [String, nil] Path of file that `name` was extracted from
# @param warn [Boolean] Print a warning if no department given for `name`
#
# @raise [AmbiguousCopName]
# if a bare identifier with two possible namespaces is provided
Expand Down

0 comments on commit 9b5c1d8

Please sign in to comment.