mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Refactor ExplainFormatter
This commit is contained in:
parent
f9b05a309e
commit
33ef9c6293
3 changed files with 41 additions and 22 deletions
|
@ -59,7 +59,7 @@ module Ameba
|
|||
source = Source.new "a = 42", "source.cr"
|
||||
output = explanation(source)
|
||||
output.should contain "DETAILED DESCRIPTION"
|
||||
output.should contain "TO BE DONE..."
|
||||
output.should contain "Rule extended description"
|
||||
end
|
||||
|
||||
it "writes nothing if location not found" do
|
||||
|
|
|
@ -24,6 +24,7 @@ module Ameba
|
|||
end
|
||||
end
|
||||
|
||||
# Rule extended description
|
||||
class ErrorRule < Rule::Base
|
||||
properties do
|
||||
description "Always adds an error at 1:1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue