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.
1 parent 46c04d4 commit d83b35bCopy full SHA for d83b35b
comment_spell_check/comment_spell_check.py
@@ -268,7 +268,21 @@ def spell_check_file(
268
bad_words = []
269
line_count = 0
270
271
+ disable_spell_check = False
272
+
273
for c in clist:
274
+ if "spell-check-disable" in c.text().lower():
275
+ disable_spell_check = True
276
+ logger.info(" Spell checking disabled")
277
+ continue
278
279
+ if "spell-check-enable" in c.text().lower():
280
281
+ logger.info(" Spell checking enabled")
282
283
+ if disable_spell_check:
284
285
286
mistakes = spell_check_comment(spell_checker, c, prefixes=prefixes)
287
if len(mistakes) > 0:
288
logger.info("\nLine number %s", c.line_number())
0 commit comments