Ignore certain words

unstable
sinn3r 2012-12-13 12:21:22 -06:00
parent 051fe4ddd4
commit a049327f21
1 changed files with 2 additions and 0 deletions

View File

@ -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