We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 65d081a + 268e815 commit f526610Copy full SHA for f526610
codespell.py
@@ -135,6 +135,7 @@ def spell_check_comment(
135
if len(pre) == len(error_word):
136
if output_lvl > 1:
137
print(f"Prefix '{pre}' matches word")
138
+ valid = True
139
break
140
141
# remove the prefix
@@ -143,10 +144,14 @@ def spell_check_comment(
143
144
print(f"Trying without '{pre}' prefix: {error_word} -> {wrd}")
145
try:
146
if spell_checker.check(wrd):
147
148
149
except BaseException:
150
print(f"Caught an exception for word {error_word} {wrd}")
151
152
+ if valid:
153
+ continue
154
+
155
# Try splitting camel case words and checking each sub-word
156
157
print(f"Trying splitting camel case word: {error_word}")
0 commit comments