We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9329cb0 commit 199f2f6Copy full SHA for 199f2f6
1 file changed
src/cfengine_cli/commands.py
@@ -90,7 +90,9 @@ def format(names, line_length, check) -> int:
90
if os.path.isdir(name):
91
ret |= _format_dirname(name, line_length, check)
92
continue
93
- return ret
+ if check:
94
+ return ret
95
+ return 0
96
97
98
def _lint(files, strict) -> int:
0 commit comments