INNER CODE UNIT · Python
line_num
timschneeb/awesome-shizuku · scripts/lint.py:27
line_num = i + 1
line_stripped = line.strip()
if line_stripped.startswith('## Table of contents'):
in_content_section = False
continue
if re.match(r'^#{2,6}\s+', line_stripped):
current_category = line_stripped.replace('#', '').strip()
if current_category not in ["License", "Annotations", "Languages", "Table of contents"]:
in_content_section = True
else:
in_content_section = False
continue
if not in_content_section:
continue