class Pronto::BigFiles
Performs incremental quality reporting for the bigfiles gem
Performs incremental quality reporting for the bigfiles gem
Performs incremental quality reporting for the bigfiles gem
Public Class Methods
new(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))
click to toggle source
Calls superclass method
# File lib/pronto/bigfiles.rb, line 13 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
Public Instance Methods
inspect_patch(patch)
click to toggle source
# File lib/pronto/bigfiles.rb, line 31 def inspect_patch(patch) @patch_inspector.inspect_patch(@patch_wrapper_class.new(patch)) end
run()
click to toggle source
# File lib/pronto/bigfiles.rb, line 27 def run @patches.flat_map { |patch| inspect_patch(patch) } end