mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Report #REMOVEME? and # FIXMEhelpers2.1 flags as warnings
This commit is contained in:
parent
a7367a3af8
commit
3e0ecba859
1 changed files with 10 additions and 0 deletions
|
@ -2863,6 +2863,16 @@ class Script(TestSuite):
|
|||
"You should not be using 'rm -rf', please use 'ynh_secure_remove' instead"
|
||||
)
|
||||
|
||||
@test()
|
||||
def FIXMEs(self):
|
||||
removeme = f"grep -q '#REMOVEME?' '{self.path}'"
|
||||
fixme = f"grep -q '# FIXMEhelpers2.1' '{self.path}'"
|
||||
|
||||
if os.system(removeme) == 0:
|
||||
yield Warning("There are still some REMOVEME? flags to be taken care of")
|
||||
if os.system(fixme) == 0:
|
||||
yield Warning("There are still some FIXMEhelpers2.1 flags to be taken care of")
|
||||
|
||||
@test()
|
||||
def nginx_restart(self):
|
||||
if self.contains("systemctl restart nginx") or self.contains(
|
||||
|
|
Loading…
Reference in a new issue