mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Misc fixes
This commit is contained in:
parent
af8faf2088
commit
2ad2188805
1 changed files with 3 additions and 1 deletions
|
@ -552,6 +552,8 @@ class App(TestSuite):
|
||||||
yield Warning("Consider keeping the content of doc/screenshots under ~512Kb for better UI/UX once the screenshots will be integrated in the webadmin app's catalog (to be discussed with the team)")
|
yield Warning("Consider keeping the content of doc/screenshots under ~512Kb for better UI/UX once the screenshots will be integrated in the webadmin app's catalog (to be discussed with the team)")
|
||||||
|
|
||||||
for path in os.listdir(app.path + "/doc/screenshots"):
|
for path in os.listdir(app.path + "/doc/screenshots"):
|
||||||
|
if path == ".gitkeep":
|
||||||
|
continue
|
||||||
if all(not path.lower().endswith(ext) for ext in [".jpg", ".jpeg", ".png", ".gif", ".webp"]):
|
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")
|
yield Warning("In the doc/screenshots folder, only .jpg, .jpeg, .png, .webp and .gif are accepted")
|
||||||
break
|
break
|
||||||
|
@ -1228,7 +1230,7 @@ class Configurations(TestSuite):
|
||||||
):
|
):
|
||||||
|
|
||||||
yield Info(
|
yield Info(
|
||||||
f"You are encouraged to harden the security of the systemd configuration {filename}. You can have a look at https://github.com/YunoHost/example_ynh/blob/master/conf/systemd.service#L14-L42 for a baseline."
|
f"You are encouraged to harden the security of the systemd configuration {filename}. You can have a look at https://github.com/YunoHost/example_ynh/blob/master/conf/systemd.service#L14-L46 for a baseline."
|
||||||
)
|
)
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
|
|
Loading…
Reference in a new issue