mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-09 21:08:29 +00:00
trivial: Make the quirk style more consistent
This commit is contained in:
parent
6a8f285ee2
commit
c1ff02f055
@ -26,12 +26,22 @@ def test_files() -> int:
|
||||
print("{} has invalid section header: {}".format(fn, line))
|
||||
rc = 1
|
||||
continue
|
||||
for deprecated in ["DeviceInstanceId", "Guid"]:
|
||||
if line.find(deprecated) != -1:
|
||||
print("{} has deprecated prefix: {}".format(fn, deprecated))
|
||||
rc = 1
|
||||
continue
|
||||
else:
|
||||
sections = line.split(" = ")
|
||||
if len(sections) != 2:
|
||||
print("{} has invalid line: {}".format(fn, line))
|
||||
rc = 1
|
||||
continue
|
||||
for section in sections:
|
||||
if section.strip() != section:
|
||||
print("{} has invalid spacing: {}".format(fn, line))
|
||||
rc = 1
|
||||
break
|
||||
return rc
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user