lib/cc/analyzer/issue_validations/path_is_file_validation.rb (14 lines of code) (raw):

module CC module Analyzer module IssueValidations class PathIsFileValidation < Validation def valid? path && File.file?(path) end def message "Path is not a file: '#{path}'" end end end end end