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.84.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.83.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.82.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.81.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.80.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.79.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.78.1 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.78.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.77.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.76.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.75.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.74.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.73.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.72.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.71.2 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.71.1 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.71.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.70.6 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.70.5 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.70.4 lib/cc/analyzer/issue_validations/type_validation.rb