Make RuleConfig#properties accept only Call nodes

Add optional named argument `as`, in order to specify the property type
This commit is contained in:
Sijawusz Pur Rahnama 2023-12-28 04:45:46 +01:00
parent 47088b10ca
commit 55f3ec53b7
4 changed files with 18 additions and 17 deletions

View file

@ -6,7 +6,7 @@ module Ameba
# Dummy Rule which does nothing.
class DummyRule < Rule::Base
properties do
description : String = "Dummy rule that does nothing."
description "Dummy rule that does nothing."
dummy true
end
@ -92,7 +92,7 @@ module Ameba
class PerfRule < Rule::Performance::Base
properties do
description : String = "Sample performance rule"
description "Sample performance rule"
end
def test(source)