add error to allowed exception variables

resolves #433
This commit is contained in:
Stephen von Takach 2023-12-28 17:06:35 +11:00 committed by GitHub
parent 47088b10ca
commit 0f32ce0edb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ module Ameba::Rule::Naming
class RescuedExceptionsVariableName < Base
properties do
description "Makes sure that rescued exceptions variables are named as expected"
allowed_names %w[e ex exception]
allowed_names %w[e ex error exception]
end
MSG = "Disallowed variable name, use one of these instead: '%s'"