From 2c48286c1f031ca5cb0321e38e85bc63d5b38fb7 Mon Sep 17 00:00:00 2001 From: Andre Richter Date: Mon, 21 Mar 2022 22:09:18 +0100 Subject: [PATCH] Skip misspell on files of non-english language --- utils/devtool.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/devtool.rb b/utils/devtool.rb index 849d139c..a926cd2c 100755 --- a/utils/devtool.rb +++ b/utils/devtool.rb @@ -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