Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Jul 26, 2022
1 parent 44cc3e6 commit 9ee971d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions cylc/flow/scripts/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def main(parser: COP, options: 'Values', *targets) -> None:
)
continue
elif not cylc8 and options.linter == 'all':
check_names = parse_checks('style')
check_names = 'style'
else:
check_names = options.linter

Expand All @@ -490,23 +490,17 @@ def main(parser: COP, options: 'Values', *targets) -> None:
options.inplace,
)

# Summing up:
if options.linter == 'all':
checks_done = "728 & style"
else:
checks_done = options.linter

if count > 0:
msg = (
f'\n{Fore.YELLOW}'
f'Checked {target} against {checks_done} '
f'Checked {target} against {check_names} checks'
f'rules and found {count} issue'
f'{"s" if count > 1 else ""}.'
)
else:
msg = (
f'{Fore.GREEN}'
f'Checked {target} against {checks_done} '
f'Checked {target} against {check_names} checks'
'Found no issues.'
)

Expand Down

0 comments on commit 9ee971d

Please sign in to comment.