We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9ce4771 + dda2de3 commit 2847e64Copy full SHA for 2847e64
src/cfengine_cli/commands.py
@@ -124,8 +124,7 @@ def _lint_single_arg(arg):
124
if os.path.isdir(arg):
125
return _lint_folder(arg)
126
assert os.path.isfile(arg)
127
- _lint_single_file(arg)
128
- return 0
+ return _lint_single_file(arg)
129
130
131
def _lint(files) -> int:
@@ -138,9 +137,7 @@ def _lint(files) -> int:
138
137
for file in files:
139
errors += _lint_single_arg(file)
140
141
- if errors == 0:
142
143
- return 1
+ return errors
144
145
146
def lint(files) -> int:
0 commit comments