mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Check for unneeded directives when all other rules are done
This commit is contained in:
parent
6fb483a2dd
commit
eda5960b0f
8 changed files with 53 additions and 17 deletions
|
@ -67,7 +67,7 @@ module Ameba::Rule
|
|||
|
||||
it "fails if there is disabled UnneededDisableDirective" do
|
||||
s = Source.new %Q(
|
||||
# ameba:disable #{UnneededDisableDirective.class_name}
|
||||
# ameba:disable #{UnneededDisableDirective.rule_name}
|
||||
a = 1
|
||||
), "source.cr"
|
||||
s.error UnneededDisableDirective.new, 3, 1, "Alarm!", :disabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue