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 ee1aaac commit 014269cCopy full SHA for 014269c
tools/msftidy.rb
@@ -63,7 +63,6 @@ def check_old_keywords
63
max_count = 10
64
counter = 0
65
if @source =~ /^##/
66
- first_line = true
67
@source.each_line do |line|
68
# If exists, the $Id$ keyword should appear at the top of the code.
69
# If not (within the first 10 lines), then we assume there's no
@@ -75,14 +74,11 @@ def check_old_keywords
75
74
break
76
end
77
78
- return if !first_line and line =~ /^##/
79
- first_line = false
80
-
81
counter += 1
82
83
84
85
- if @source =~ /'Version'[[:space:]]*=>[[:space:]]*['|"]\$Revision\$['|"]/
+ if @source =~ /'Version'[[:space:]]*=>[[:space:]]*['"]\$Revision\$['"]/
86
warn("Keyword $Revision$ is no longer needed.")
87
88
0 commit comments