mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Add comments to macros
This commit is contained in:
parent
94e31d4685
commit
b156a6a6a1
2 changed files with 2 additions and 0 deletions
|
@ -240,6 +240,7 @@ class Ameba::Config
|
|||
|
||||
# :nodoc:
|
||||
module RuleConfig
|
||||
# Define rule properties
|
||||
macro properties(&block)
|
||||
{% definitions = [] of NamedTuple %}
|
||||
{% if block.body.is_a? Assign %}
|
||||
|
|
|
@ -112,6 +112,7 @@ module Ameba::Rule
|
|||
name.hash
|
||||
end
|
||||
|
||||
# Adds an issue to the *source*
|
||||
macro issue_for(*args, **kwargs, &block)
|
||||
source.add_issue(self, {{ *args }}, {{ **kwargs }}) {{ block }}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue