Exemplo n.º 1
0
def detect(text):
    code_instances = api.get_codes()
    for code_instance in code_instances:
        violations = code_instance.detect(text)
        for violation in violations:
            yield violation
Exemplo n.º 2
0
def replace(text):
    code_instances = api.get_codes()
    for code_instance in code_instances:
        text = code_instance.replace(text)
    return text