Sha256: 0fe53350ba52c9ff723fb9b68ecee1fcdb4aabb3910039f57e6e8edf89f7db36

Contents?: true

Size: 285 Bytes

Versions: 76

Compression:

Stored size: 285 Bytes

Contents

module CC
  module Analyzer
    module IssueValidations
      class TypeValidation < Validation
        def valid?
          type && type.casecmp("issue").zero?
        end

        def message
          "Type must be 'issue' but was '#{type}'"
        end
      end
    end
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
codeclimate-0.70.3 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.70.2 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.70.1 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.70.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.69.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.68.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.67.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.66.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.65.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.64.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.63.7 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.63.6 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.63.5 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.63.4 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.63.3 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.63.2 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.63.1 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.63.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.62.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.61.1 lib/cc/analyzer/issue_validations/type_validation.rb