Sha256: 85b81fab3909708a67795e50138667dd834c55da9ab015d425ffa700639a27b6

Contents?: true

Size: 399 Bytes

Versions: 14

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

require "refinements/array"

module Git
  module Lint
    module Errors
      # Categorizes severity errors.
      class Severity < Base
        using Refinements::Array

        def initialize level
          usage = Analyzers::Abstract::LEVELS.to_usage "or"
          super %(Invalid severity level: #{level}. Use: #{usage}.)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
git-lint-8.8.0 lib/git/lint/errors/severity.rb
git-lint-8.7.0 lib/git/lint/errors/severity.rb
git-lint-8.6.0 lib/git/lint/errors/severity.rb
git-lint-8.5.0 lib/git/lint/errors/severity.rb
git-lint-8.4.0 lib/git/lint/errors/severity.rb
git-lint-8.3.0 lib/git/lint/errors/severity.rb
git-lint-8.2.0 lib/git/lint/errors/severity.rb
git-lint-8.1.0 lib/git/lint/errors/severity.rb
git-lint-8.0.0 lib/git/lint/errors/severity.rb
git-lint-7.5.0 lib/git/lint/errors/severity.rb
git-lint-7.3.0 lib/git/lint/errors/severity.rb
git-lint-7.2.0 lib/git/lint/errors/severity.rb
git-lint-7.1.0 lib/git/lint/errors/severity.rb
git-lint-7.0.0 lib/git/lint/errors/severity.rb