Class: RSpec::Risky::StaticDetector::Finding
- Inherits:
-
Struct
- Object
- Struct
- RSpec::Risky::StaticDetector::Finding
- Defined in:
- lib/rspec/risky/static_detector.rb
Instance Attribute Summary collapse
-
#evidence ⇒ Object
Returns the value of attribute evidence.
-
#file ⇒ Object
Returns the value of attribute file.
-
#line ⇒ Object
Returns the value of attribute line.
-
#rule ⇒ Object
Returns the value of attribute rule.
Instance Method Summary collapse
Instance Attribute Details
#evidence ⇒ Object
Returns the value of attribute evidence
12 13 14 |
# File 'lib/rspec/risky/static_detector.rb', line 12 def evidence @evidence end |
#file ⇒ Object
Returns the value of attribute file
12 13 14 |
# File 'lib/rspec/risky/static_detector.rb', line 12 def file @file end |
#line ⇒ Object
Returns the value of attribute line
12 13 14 |
# File 'lib/rspec/risky/static_detector.rb', line 12 def line @line end |
#rule ⇒ Object
Returns the value of attribute rule
12 13 14 |
# File 'lib/rspec/risky/static_detector.rb', line 12 def rule @rule end |
Instance Method Details
#to_h ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/rspec/risky/static_detector.rb', line 13 def to_h { file: file, line: line, location: "#{file}:#{line}", rule: rule, evidence: evidence } end |