Skip misspell on files of non-english language

pull/148/head
Andre Richter 2 years ago
parent 819f62d51b
commit 2c48286c1f
No known key found for this signature in database
GPG Key ID: 2116C1AB102F615E

@ -193,7 +193,12 @@ class DevTool
def misspell
puts 'Misspell'.light_blue
exit(1) unless system(".vendor/misspell -error #{tracked_files.join(' ')}")
translations = ['README.CN.md', 'README.ES.md']
files = tracked_files.reject { |f| translations.include?(File.basename(f)) }
files = files.join(' ')
exit(1) unless system(".vendor/misspell -error #{files}")
end
def rubocop

Loading…
Cancel
Save