Skip to content

Commit 99bf5e6

Browse files
committed
fixed bad merge
1 parent 5b534fb commit 99bf5e6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

comment_spell_check/comment_spell_check.py

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

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

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

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

434435
suffixes = [*set(args.suffix)] # remove duplicates
435436

@@ -494,9 +495,8 @@ def output_results(args, bad_words):
494495

495496
def main():
496497
parser = parseargs.create_parser()
497-
args = parseargs.parse_args(parser)
498+
args = parseargs.parse_args()
498499
comment_spell_check(args)
499500

500-
501501
if __name__ == "__main__":
502502
main()

0 commit comments

Comments
 (0)