codeclimate/codeclimate

View on GitHub
lib/cc/analyzer/issue_validations/path_is_file_validation.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
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