class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment
This class provides an API compatible with RuboCop::DirectiveComment
to be used for cops that are disabled in the config file
Constants
- Expression
- Loc
Attributes
line_number[R]
loc[R]
text[R]
Public Class Methods
new(cop_name)
click to toggle source
# File lib/rubocop/comment_config.rb, line 21 def initialize(cop_name) @text = "# rubocop:disable #{cop_name}" @line_number = CONFIG_DISABLED_LINE_RANGE_MIN @loc = Loc.new(Expression.new(CONFIG_DISABLED_LINE_RANGE_MIN)) end