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 637ce05 commit 63d1a78Copy full SHA for 63d1a78
tools/msftidy.rb
@@ -424,8 +424,8 @@ def check_lines
424
# The rest of these only count if it's not a comment line
425
next if ln =~ /[[:space:]]*#/
426
427
- if ln =~ /(\$std(?:out|err))/i or ln =~ /[[:space:]]puts/
428
- next if ln =~ /^[\s]*[\x22\x27][^\x22\x27]+\$std(?:out|err)/
+ if ln =~ /\$std(?:out|err)/i or ln =~ /[[:space:]]puts/
+ next if ln =~ /^[\s]*["][^"]+\$std(?:out|err)/
429
no_stdio = false
430
error("Writes to stdout", idx)
431
end
0 commit comments