Skip to content

Commit faaa349

Browse files
committed
Fix docs for Offense.cop_name
It says the string will be without department, but that is not true.
1 parent 85f9405 commit faaa349

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/rubocop/cop/offense.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ class Offense
4343
# @!attribute [r] cop_name
4444
#
4545
# @return [String]
46-
# a cop class name without department.
47-
# i.e. type of the violation.
46+
# the cop name as a String for which this offense is for.
4847
#
4948
# @example
50-
# 'LineLength'
49+
# 'Layout/LineLength'
5150
attr_reader :cop_name
5251

5352
# @api private

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy