Sha256: a6bc843246115f793fdc2e61bd6ea5f991ca077db1657963a2efddf42e3cc27c

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 Bytes

Contents

module CC
  module Analyzer
    module IssueValidations
      class PathPresenceValidation < Validation
        def valid?
          path.present?
        end

        def message
          "Path must be present"
        end

        private

        def path
          object.fetch("location", {})["path"]
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
codeclimate-0.36.0 lib/cc/analyzer/issue_validations/path_presence_validation.rb
codeclimate-0.35.2 lib/cc/analyzer/issue_validations/path_presence_validation.rb
codeclimate-0.35.1 lib/cc/analyzer/issue_validations/path_presence_validation.rb
codeclimate-0.35.0 lib/cc/analyzer/issue_validations/path_presence_validation.rb