Skip to content

Commit 9aa1aaf

Browse files
committed
ENH: Report message when prefix matches the error word
1 parent 3740a17 commit 9aa1aaf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

codespell.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ def spell_check_comment(
106106
if error.word.startswith(pre):
107107
# check if the word is only the prefix
108108
if len(pre) == len(error.word):
109+
if output_lvl > 1:
110+
print(f"Prefix '{pre}' matches word")
109111
break
110112

111113
# remove the prefix

0 commit comments

Comments
 (0)