def main():
    print('Validating Config Style')
    for test in excluded_files:
        print('Excluded File: ', test)
    sqf_list = []
    bad_count = 0
    parser = argparse.ArgumentParser()
    parser.add_argument('-m', '--module', help='only search specified module addon folder', required=False, default='')
    args = parser.parse_args()
    rootDir = 'Swamp Aux/'
    for (root, dirnames, filenames) in os.walk(((rootDir + '/') + args.module)):
        for filename in fnmatch.filter(filenames, '*.cpp'):
            sqf_list.append(os.path.join(root, filename))
        for filename in fnmatch.filter(filenames, '*.hpp'):
            sqf_list.append(os.path.join(root, filename))
    for filename in sqf_list:
        if (filename not in excluded_files):
            bad_count = (bad_count + check_config_style(filename))
    print('------\nChecked {0} files\nErrors detected: {1}'.format(len(sqf_list), bad_count))
    if (bad_count == 0):
        print('Config validation PASSED')
    else:
        print('Config validation FAILED')
    return bad_count
def main():
    print('Validating Config Style')
    for test in excluded_files:
        print('Excluded File: ', test)
    sqf_list = []
    bad_count = 0
    parser = argparse.ArgumentParser()
    parser.add_argument('-m', '--module', help='only search specified module addon folder', required=False, default=)
    args = parser.parse_args()
    rootDir = 'Swamp Aux/'
    for (root, dirnames, filenames) in os.walk(((rootDir + '/') + args.module)):
        for filename in fnmatch.filter(filenames, '*.cpp'):
            sqf_list.append(os.path.join(root, filename))
        for filename in fnmatch.filter(filenames, '*.hpp'):
            sqf_list.append(os.path.join(root, filename))
    for filename in sqf_list:
        if (filename not in excluded_files):
            bad_count = (bad_count + check_config_style(filename))
    print('------\nChecked {0} files\nErrors detected: {1}'.format(len(sqf_list), bad_count))
    if (bad_count == 0):
        print('Config validation PASSED')
    else:
        print('Config validation FAILED')
    return bad_count