Class: Steep::Diagnostic::Ruby::RedundantIgnoreComment

Inherits:
Base
  • Object
show all
Defined in:
lib/steep/diagnostic/ruby.rb

Instance Attribute Summary

Attributes inherited from Base

#location, #node

Instance Method Summary collapse

Methods inherited from Base

#detail_lines, #diagnostic_code

Methods included from Helper

#error_name, #full_message

Constructor Details

#initialize(location:) ⇒ RedundantIgnoreComment

Returns a new instance of RedundantIgnoreComment.



988
989
990
# File 'lib/steep/diagnostic/ruby.rb', line 988

def initialize(location:)
  super(node: nil, location: location)
end

Instance Method Details

#header_lineObject



992
993
994
# File 'lib/steep/diagnostic/ruby.rb', line 992

def header_line
  "Redundant ignore comment"
end