Skip to content

Commit 4ed3ffa

Browse files
committed
Fix false positive in snake case check
1 parent e62f44c commit 4ed3ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/msftidy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ def check_lines
547547
warn("Auxiliary modules have no 'Rank': #{ln}", idx)
548548
end
549549

550-
if ln =~ /^\s*def\s+(?:[^\(\)]*[A-Z]+[^\(\)]*)(?:\(.*\))?$/
550+
if ln =~ /^\s*def\s+(?:[^\(\)#]*[A-Z]+[^\(\)]*)(?:\(.*\))?$/
551551
warn("Please use snake case on method names: #{ln}", idx)
552552
end
553553
end

0 commit comments

Comments
 (0)