Skip to content

Commit 2c48286

Browse files
committed
Skip misspell on files of non-english language
1 parent 819f62d commit 2c48286

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

utils/devtool.rb

+6-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,12 @@ def copyright
193193

194194
def misspell
195195
puts 'Misspell'.light_blue
196-
exit(1) unless system(".vendor/misspell -error #{tracked_files.join(' ')}")
196+
197+
translations = ['README.CN.md', 'README.ES.md']
198+
files = tracked_files.reject { |f| translations.include?(File.basename(f)) }
199+
files = files.join(' ')
200+
201+
exit(1) unless system(".vendor/misspell -error #{files}")
197202
end
198203

199204
def rubocop

0 commit comments

Comments
 (0)