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.46.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.45.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.44.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.43.1 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.43.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.42.1 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.42.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.41.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.40.3 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.40.2 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.40.1 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.40.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.39.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.38.1 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.38.0 lib/cc/analyzer/issue_validations/type_validation.rb
codeclimate-0.37.0 lib/cc/analyzer/issue_validations/type_validation.rb