Class: Mxrb::Oql::AnalysisReport
- Inherits:
-
Data
- Object
- Data
- Mxrb::Oql::AnalysisReport
- Defined in:
- lib/mxrb/oql.rb
Instance Attribute Summary collapse
-
#findings ⇒ Object
readonly
Returns the value of attribute findings.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
Instance Attribute Details
#findings ⇒ Object (readonly)
Returns the value of attribute findings
19 20 21 |
# File 'lib/mxrb/oql.rb', line 19 def findings @findings end |
#query ⇒ Object (readonly)
Returns the value of attribute query
19 20 21 |
# File 'lib/mxrb/oql.rb', line 19 def query @query end |
Instance Method Details
#clean? ⇒ Boolean
20 |
# File 'lib/mxrb/oql.rb', line 20 def clean? = findings.none? { _1.severity == :error } |
#for_dialect(dialect) ⇒ Object
23 24 25 26 |
# File 'lib/mxrb/oql.rb', line 23 def for_dialect(dialect) key = dialect.to_sym findings.map { [_1, _1.suggestions[key]] }.freeze end |
#warnings? ⇒ Boolean
21 |
# File 'lib/mxrb/oql.rb', line 21 def warnings? = findings.any? { _1.severity == :warning } |