Skip to content

Commit d0e7d65

Browse files
committed
Merge branch 'PythonBackend' into HEAD
2 parents eeb58f2 + 8c582ac commit d0e7d65

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

comment_spell_check/comment_spell_check.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ def output_results(args, bad_words):
365365
if args.vim:
366366
print(f"vim +{line_num} {found_file}", file=sys.stderr)
367367
else:
368+
368369
print(
369370
f"file: {found_file:30} line: {line_num:3d} word: {misspelled_word}",
370371
file=sys.stderr,
@@ -422,15 +423,13 @@ def comment_spell_check(args):
422423
if args.bibtex:
423424
add_bibtex_words(spell, args.bibtex)
424425

425-
file_list = []
426-
if len(args.filenames):
427-
file_list = args.filenames
428-
else:
429-
file_list = ["."]
426+
for bibtex_file in bibtex_files:
427+
logger.info("Loading bibtex file: %s", bibtex_file)
428+
bibtex_loader.add_bibtex(spell, bibtex_file)
430429

431-
prefixes = ["sitk", "itk", "vtk"] + args.prefixes
432430

433-
bad_words = []
431+
def output_results(args, bad_words):
432+
"""Output the results of the spell check."""
434433

435434
suffixes = [*set(args.suffix)] # remove duplicates
436435

0 commit comments

Comments
 (0)