more verbose logging

This commit is contained in:
Mo Langning 2023-11-25 01:34:28 +08:00 committed by GitHub
parent 3da34d777e
commit 5cdf3deb4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,10 +26,13 @@ for i in files:
exit(2)
print("[+] %s passed new line check!"%(i))
counter=1
for line in contents.split('\n'):
if len(line)==0:
print("[!] %s has an empty entry!"%(i))
print("[!] %s has an empty entry at line %i!"%(i,counter))
exit(2)
counter+=1
print("[+] %s passed empty line check!"%(i))
print("[+] All files passed checks")