def get_rules(view):

    rules = view.settings().get("color_helper.scan", {})

    return rules if rules.get("enabled", False) else None
Get auto-popup scope rule.
dataset/ETHPy150Open facelessuser/ColorHelper/color_helper_util.py/get_rules