def checkBuildLine(line, file_path, reportError):
    if (('@bazel_tools' in line) and (not (isSkylarkFile(file_path) or file_path.startswith('./bazel/')))):
        reportError('unexpected @bazel_tools reference, please indirect via a definition in //bazel')
    if ((not whitelistedForProtobufDeps(file_path)) and ('"protobuf"' in line)):
        reportError('unexpected direct external dependency on protobuf, use //source/common/protobuf instead.')
    if (envoy_build_rule_check and (not isSkylarkFile(file_path)) and (not isWorkspaceFile(file_path)) and (not isExternalBuildFile(file_path)) and ('@envoy//' in line)):
        reportError("Superfluous '@envoy//' prefix")
def checkBuildLine(line, file_path, reportError):
    if (('@bazel_tools' in line) and (not (isSkylarkFile(file_path) or file_path.startswith('./bazel/')))):
        reportError('unexpected @bazel_tools reference, please indirect via a definition in //bazel')
    if ((not whitelistedForProtobufDeps(file_path)) and ('"protobuf"' in line)):
        reportError('unexpected direct external dependency on protobuf, use //source/common/protobuf instead.')
    if (envoy_build_rule_check and (not isSkylarkFile(file_path)) and (not isWorkspaceFile(file_path)) and (not isExternalBuildFile(file_path)) and ('@envoy//' in line)):
        reportError("Superfluous '@envoy//' prefix")