Exception: Git::Lint::Errors::Severity

Inherits:
Base
  • Object
show all
Defined in:
lib/git/lint/errors/severity.rb

Overview

Categorizes severity errors.

Instance Method Summary collapse

Constructor Details

#initialize(level) ⇒ Severity

Returns a new instance of Severity.



12
13
14
15
# File 'lib/git/lint/errors/severity.rb', line 12

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