Module: ERBLint::Utils::SeverityLevels
- Included in:
- CLI
- Defined in:
- lib/erb_lint/utils/severity_levels.rb
Constant Summary collapse
- SEVERITY_NAMES =
[:info, :refactor, :convention, :warning, :error, :fatal].freeze
- SEVERITY_CODE_TABLE =
{ I: :info, R: :refactor, C: :convention, W: :warning, E: :error, F: :fatal, }.freeze
Instance Method Summary collapse
Instance Method Details
#severity_level_for_name(name) ⇒ Object
17 18 19 |
# File 'lib/erb_lint/utils/severity_levels.rb', line 17 def severity_level_for_name(name) SEVERITY_NAMES.index(name || :error) + 1 end |