mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 02:03:37 +08:00
tools: pylint check-includes.py
This commit is contained in:
parent
b4048aaa1e
commit
f56accb6ef
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
# pylint: disable=missing-docstring,invalid-name,unspecified-encoding,consider-using-with
|
||||
# pylint: disable=consider-using-with
|
||||
|
||||
import os
|
||||
import pathlib
|
||||
@ -28,5 +28,5 @@ def check_file(filename):
|
||||
return good
|
||||
|
||||
if __name__ == '__main__':
|
||||
good = all(check_file(name) for name in sys.argv[1:])
|
||||
sys.exit(0 if good else 1)
|
||||
all_good = all(check_file(name) for name in sys.argv[1:])
|
||||
sys.exit(0 if all_good else 1)
|
||||
|
Loading…
Reference in New Issue
Block a user