class Pronto::Punchlist::PatchValidator
Determine if a patch contains analyzable files
Public Class Methods
new(file_classifier: FileClassifier.new)
click to toggle source
# File lib/pronto/punchlist/patch_validator.rb, line 10 def initialize(file_classifier: FileClassifier.new) @file_classifier = file_classifier end
Public Instance Methods
valid_patch?(patch)
click to toggle source
# File lib/pronto/punchlist/patch_validator.rb, line 14 def valid_patch?(patch) return false if patch.additions < 1 path = patch.new_file_full_path @file_classifier.non_binary?(path) end