Merge pull request #436 from crystal-ameba/cleanup-properties-macro

Make `RuleConfig#properties` accept only `Call` nodes
This commit is contained in:
Sijawusz Pur Rahnama 2023-12-28 09:24:09 +01:00 committed by GitHub
commit 9bb6c9ac75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)