We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af27719 commit 0815791Copy full SHA for 0815791
tools/msftidy.rb
@@ -548,7 +548,7 @@ def check_lines
548
if ln =~ /fail_with\(/
549
if ln =~ /fail_with\(['"].+['"]\)/
550
error("fail_with requires a Failure:: reason as first parameter: #{ln}", idx)
551
- elsif ln !~ /fail_with\(Failure\:\:(?:None|Unknown|Unreachable|BadConfig|Disconnected|NotFound|UnexpectedReply|TimeoutExpired|UserInterrupt|NoAccess|NoTarget|NotVulnerable|PayloadFailed),\s*['"].+['"]\)/
+ elsif ln !~ /fail_with\(Failure\:\:(?:None|Unknown|Unreachable|BadConfig|Disconnected|NotFound|UnexpectedReply|TimeoutExpired|UserInterrupt|NoAccess|NoTarget|NotVulnerable|PayloadFailed),.+\)/
552
error("fail_with requires a valid Failure:: reason as first parameter: #{ln}", idx)
553
end
554
0 commit comments