Sha256: aa73dcc6555140d8087cb4c20b331a5026dd503007907f4c1dfe11090cea2f97
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
# frozen_string_literal: true require 'pronto/bigfiles/version' require 'pronto/bigfiles/patch_inspector' require 'pronto/bigfiles/patch_wrapper' require 'bigfiles/inspector' require 'bigfiles/config' require 'pronto' module Pronto # Performs incremental quality reporting for the bigfiles gem class BigFiles < Runner def initialize(patches, commit = nil, bigfiles_config: ::BigFiles::Config.new, bigfiles_inspector: ::BigFiles::Inspector.new, bigfiles_results: bigfiles_inspector.find_and_analyze, patch_wrapper_class: PatchWrapper, patch_inspector: PatchInspector.new(bigfiles_results, bigfiles_config: bigfiles_config)) super(patches, commit) @patch_inspector = patch_inspector @patch_wrapper_class = patch_wrapper_class end class Error < StandardError; end def run @patches.flat_map { |patch| inspect_patch(patch) } end def inspect_patch(patch) @patch_inspector.inspect_patch(@patch_wrapper_class.new(patch)) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pronto-bigfiles-0.1.2 | lib/pronto/bigfiles.rb |
pronto-bigfiles-0.1.1 | lib/pronto/bigfiles.rb |
pronto-bigfiles-0.1.0 | lib/pronto/bigfiles.rb |