def METHOD_NAME() -> int:
    submodule_paths = sorted(['.gitmodules'] + parse_submodule_paths())
    submodule_paths_in_patterns = sorted(
        YML_CONFIG.config.get('.patterns-submodule', [])
    )
    res = 0
    if submodule_paths != submodule_paths_in_patterns:
        res = 1
        print('please update the pattern ".patterns-submodule"')
        should_remove = set(submodule_paths_in_patterns) - set(submodule_paths)
        if should_remove:
            print(f'- should remove: {should_remove}')
        should_add = set(submodule_paths) - set(submodule_paths_in_patterns)
        if should_add:
            print(f'- should add: {should_add}')
    return res