Skip to content

Commit

Permalink
checkpatch: Fix personal word list storage.
Browse files Browse the repository at this point in the history
The enchant dictionary synchronizes additions to the source file.
Keep the two word source separate by adding the extra words only
to the current session.

Fixes: 999c777 ("checkpatch: add a comment spell-checker")
Signed-off-by: Gaetan Rivet <gaetanr@nvidia.com>
Acked-by: Roi Dayan <roid@nvidia.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Aaron Conole <aconole@redhat.com>
  • Loading branch information
grivet authored and apconole committed Jan 9, 2024
1 parent 2535d17 commit 21c6124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/checkpatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def open_spell_check_dict():
global spell_check_dict
spell_check_dict = enchant.Dict("en_US")
for kw in extra_keywords:
spell_check_dict.add(kw)
spell_check_dict.add_to_session(kw)

return True
except:
Expand Down

0 comments on commit 21c6124

Please sign in to comment.