@skip_ignored_lines
def no_use_conf_debug_check(logical_line, physical_line, filename):
    excluded_files = ["./rally/common/logging.py"]

    point = logical_line.find("CONF.debug")
    if point != -1 and filename not in excluded_files:
        yield(point, "N312 Don't use `CONF.debug`. "
                     "Function `rally.common.logging.is_debug` "
                     "should be used instead.")
Regression test for
dataset/ETHPy150Open openstack/rally/tests/hacking/checks.py/no_use_conf_debug_check--crossover with--dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/tests/test_checksum.py/TestChecksumFunctions.test_scaled_data_auto_rescale