

def check(file_staged_for_commit, options):
    basename = os.path.basename(file_staged_for_commit.path)
    if (not fnmatch.fnmatch(options, options.json_files)):
        return True
    try:
        json.loads(file_staged_for_commit.contents)
    except ValueError:
        return False
    else:
        return True

dataset/ETHPy150Open evvers/git-pre-commit-hook/git_pre_commit_hook/builtin_plugins/json_check.py check/VarMisuse@32/47 `basename`->`options`