module CC module Analyzer class IssuePathExistenceValidation < Validation def valid? File.exist?(path) end def message "File does not exist: '#{path}'" end private def path object.fetch("location", {}).fetch("path", "") end end end end