Class: FlutterAnalyzeParser
- Inherits:
-
Object
- Object
- FlutterAnalyzeParser
- Defined in:
- lib/flutter_analyze_parser.rb
Class Method Summary collapse
Class Method Details
.violations(input) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/flutter_analyze_parser.rb', line 5 def violations(input) filtered_input = filter_input(input) return [] if filtered_input.detect { |element| element.include? "No issues found!" } filtered_input .select { |line| line.start_with? "info" } .map(&method(:parse_line)) end |