Ignore certain words
parent
051fe4ddd4
commit
a049327f21
|
@ -214,6 +214,8 @@ class Msftidy
|
||||||
words.each do |word|
|
words.each do |word|
|
||||||
if word =~ /^['"].+['"]$/ or word =~ /^[a-z].*[A-Z].+$/
|
if word =~ /^['"].+['"]$/ or word =~ /^[a-z].*[A-Z].+$/
|
||||||
next
|
next
|
||||||
|
elsif %w{and or the for via}.include?(word)
|
||||||
|
next
|
||||||
elsif word =~ /^[a-z]+$/
|
elsif word =~ /^[a-z]+$/
|
||||||
warn("Improper capitalization in module title: '#{word}...'")
|
warn("Improper capitalization in module title: '#{word}...'")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue