From 39cc286263c9b4586a64948fed9b5ae9809acff8 Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Tue, 22 Nov 2022 19:44:38 +0100 Subject: [PATCH] Use tuple instead of array for `Rule::SPECIAL` --- src/ameba/rule/base.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ameba/rule/base.cr b/src/ameba/rule/base.cr index e261a10b..598f5991 100644 --- a/src/ameba/rule/base.cr +++ b/src/ameba/rule/base.cr @@ -1,10 +1,10 @@ module Ameba::Rule # List of names of the special rules, which # behave differently than usual rules. - SPECIAL = [ + SPECIAL = { Lint::Syntax.rule_name, Lint::UnneededDisableDirective.rule_name, - ] + } # Represents a base of all rules. In other words, all rules # inherits from this struct: