#!/usr/bin/env python3 import argparse import json import re from pathlib import Path ACTIVE_PATTERNS = { "hugo_shortcode": re.compile(r"\{\{(?:<|%)"), "go_template_action": re.compile(r"\{\{\s*(?:\.|if\b|with\b|range\b|end\b|partial\b|site\b|warnf\b|errorf\b)"), "local_absolute_path": re.compile(r"(?:/Users/|/home/|/private/var/folders/)"), "script_tag": re.compile(r"