Merge pull request #373 from crystal-ameba/fix-372

Raise when empty severity provided to `SeverityYamlConverter.from_yaml`
This commit is contained in:
Sijawusz Pur Rahnama 2023-05-09 14:28:17 +02:00 committed by GitHub
commit 60948fffd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ module Ameba
case value = node.value
when String then Severity.parse(value)
when Nil then nil
when Nil then raise "Missing severity"
else
raise "Incorrect severity: #{value}"
end