mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Merge pull request #436 from crystal-ameba/cleanup-properties-macro
Make `RuleConfig#properties` accept only `Call` nodes
This commit is contained in:
commit
9bb6c9ac75
4 changed files with 18 additions and 17 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue