xref: /aosp_15_r20/build/bazel/rules/java/errorprone/BUILD (revision 7594170e27e0732bc44b93d1440d87a54b6ffe7c)
1"""
2Copyright (C) 2023 The Android Open Source Project
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6
7You may obtain a copy of the License at
8
9    http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16"""
17
18load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
19load("@env//:env.bzl", "env")
20load("//build/bazel/flags:common.bzl", "is_env_true")
21
22package(default_visibility = ["//visibility:public"])
23
24bool_flag(
25    name = "errorprone_globally_disabled",
26    build_setting_default = not is_env_true(env.get("RUN_ERROR_PRONE")),
27)
28