From ea9b4b76f96130ad31ed418e0d560fa51648995a Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Wed, 30 Sep 2020 12:11:55 +1000 Subject: [PATCH] check_spelling: ignore plurals of variables in the file --- check_source/check_spelling.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/check_source/check_spelling.py b/check_source/check_spelling.py index 402d976..941ebaa 100755 --- a/check_source/check_spelling.py +++ b/check_source/check_spelling.py @@ -309,6 +309,8 @@ def extract_c_comments(filepath): for i, i_next in code_ranges: for match in re_vars.finditer(text[i:i_next]): code_words.add(match.group(0)) + # Allow plurals of these variables too. + code_words.add(match.group(0) + "'s") comments = [] -- GitLab