lib/u3d/log_analyzer.rb in u3d-0.9.3 vs lib/u3d/log_analyzer.rb in u3d-0.9.4
- old
+ new
@@ -22,10 +22,11 @@
require 'json'
module U3d
# Analyzes log by filtering output along a set of rules
+ # rubocop:disable ClassLength, PerceivedComplexity, BlockNesting
class LogAnalyzer
RULES_PATH = File.expand_path('../../../config/log_rules.json', __FILE__)
MEMORY_SIZE = 10
def initialize
@@ -225,6 +226,7 @@
r['type'] ||= 'message'
r['ignore_lines'].map! { |pat| Regexp.new pat } if r['ignore_lines']
true
end
end
+ # rubocop:enable ClassLength, PerceivedComplexity, BlockNesting
end