codeclimate/codeclimate

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module CC
  module Analyzer
    module IssueValidations
      class PathExistenceValidation < Validation
        def valid?
          path && File.exist?(path)
        end

        def message
          "File does not exist: '#{path}'"
        end
      end
    end
  end
end