Skip to content

Commit

Permalink
Disable Lint/UselessAssign rule for custom matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
icy-arctic-fox committed Jul 24, 2024
1 parent 70437af commit 780eeb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/spec_helper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Spectator::Matchers.define :pass_check do
end
end

# ameba:disable Lint/UselessAssign
Spectator::Matchers.define :fail_check, message : String | Regex do
@result : Spectator::Core::Result?

Expand Down

0 comments on commit 780eeb2

Please sign in to comment.