File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -546,9 +546,7 @@ def check_lines
546
546
end
547
547
548
548
if ln =~ /^\s *fail_with\( /
549
- if ln =~ /^\s *fail_with\( ['"].+['"]\) /
550
- error ( "fail_with requires a Failure:: reason as first parameter: #{ ln } " , idx )
551
- elsif ln !~ /^\s *fail_with\( Failure\: \: (?:None|Unknown|Unreachable|BadConfig|Disconnected|NotFound|UnexpectedReply|TimeoutExpired|UserInterrupt|NoAccess|NoTarget|NotVulnerable|PayloadFailed),.+\) /
549
+ unless ln =~ /^\s *fail_with\( Failure\: \: (?:None|Unknown|Unreachable|BadConfig|Disconnected|NotFound|UnexpectedReply|TimeoutExpired|UserInterrupt|NoAccess|NoTarget|NotVulnerable|PayloadFailed),/
552
550
error ( "fail_with requires a valid Failure:: reason as first parameter: #{ ln } " , idx )
553
551
end
554
552
end
You can’t perform that action at this time.
0 commit comments