awesome-youtubers/linter/rules/content_about.py
José De Freitas cbfeea5a4c
Update path
2021-02-06 15:04:51 -05:00

16 lines
486 B
Python

file_readme = '.././readme.md'
with open(file_readme, 'r') as read_readme:
content_readme = read_readme.readlines()
def content_about():
content_about_errors_nums = []
content_about_line = 'Content about:'
for j, i in enumerate(content_readme):
if content_about_line in i:
if i[-2] != '\\':
content_about_errors_nums.append(j)
return content_about_errors_nums
content_about_errors_nums = content_about()