def check_naming_convention_subcomponent(lines, component, file):
    (ifndef_symbol, _) = get_ifndef_symbol(lines)
    if ((component == 'ghoul') or (component == 'openspace_core')):
        return
    subcomponent_part = ifndef_symbol[((2 + len(component)) + 1):]
    subcomponent_part = subcomponent_part[:subcomponent_part.find('_')]
    path_part = file.split('/')[1]
    second_path_part = file.split('/')[2]
    if ((path_part.upper() != subcomponent_part) and (second_path_part.upper() != subcomponent_part)):
        return ('Subcomponent naming convention broken: ' + ifndef_symbol)
    else:
        return ''
def check_naming_convention_subcomponent(lines, component, file):
    (ifndef_symbol, _) = get_ifndef_symbol(lines)
    if ((component == 'ghoul') or (component == 'openspace_core')):
        return
    subcomponent_part = ifndef_symbol[((2 + len(component)) + 1):]
    subcomponent_part = subcomponent_part[:subcomponent_part.find('_')]
    path_part = file.split('/')[1]
    second_path_part = file.split('/')[2]
    if ((path_part.upper() != subcomponent_part) and (second_path_part.upper() != subcomponent_part)):
        return ('Subcomponent naming convention broken: ' + ifndef_symbol)
    else:
        return 