mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
fix warning for subfolders in '/doc/screenshots'
This commit is contained in:
parent
7179390b2c
commit
259ebcd127
1 changed files with 2 additions and 0 deletions
|
@ -599,6 +599,8 @@ class App(TestSuite):
|
|||
for path in os.listdir(app.path + "/doc/screenshots"):
|
||||
if path == ".gitkeep":
|
||||
continue
|
||||
if os.path.isdir(path):
|
||||
continue
|
||||
if all(not path.lower().endswith(ext) for ext in [".jpg", ".jpeg", ".png", ".gif", ".webp"]):
|
||||
yield Warning("In the doc/screenshots folder, only .jpg, .jpeg, .png, .webp and .gif are accepted")
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue