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