lib/rubocop/cop/severity.rb in rubocop-0.47.1 vs lib/rubocop/cop/severity.rb in rubocop-0.48.0
- old
+ new
@@ -5,10 +5,10 @@
# Severity class is simple value object about severity
class Severity
include Comparable
# @api private
- NAMES = [:refactor, :convention, :warning, :error, :fatal].freeze
+ NAMES = %i(refactor convention warning error fatal).freeze
# @api private
CODE_TABLE = { R: :refactor, C: :convention,
W: :warning, E: :error, F: :fatal }.freeze