Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply buildifier lint fixes #233

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions fuzzing/cc_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ Definitions outside this file are private unless otherwise noted, and may
change without notice.
"""

load(
"//fuzzing/private:fuzz_test.bzl",
_cc_fuzz_test = "cc_fuzz_test",
_fuzzing_decoration = "fuzzing_decoration",
)
load(
"//fuzzing/private:engine.bzl",
_FuzzingEngineInfo = "FuzzingEngineInfo",
_cc_fuzzing_engine = "cc_fuzzing_engine",
)
load(
"//fuzzing/private:fuzz_test.bzl",
_cc_fuzz_test = "cc_fuzz_test",
_fuzzing_decoration = "fuzzing_decoration",
)

cc_fuzz_test = _cc_fuzz_test
cc_fuzzing_engine = _cc_fuzzing_engine
Expand Down
2 changes: 1 addition & 1 deletion fuzzing/engines/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@rules_cc//cc:defs.bzl", "cc_library")
load("//fuzzing:cc_defs.bzl", "cc_fuzzing_engine")
load("//fuzzing:java_defs.bzl", "java_fuzzing_engine")
load("@rules_cc//cc:defs.bzl", "cc_library")

# libFuzzer specification.
##########################
Expand Down
2 changes: 1 addition & 1 deletion fuzzing/init.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

"""Dependency initialization utilities."""

load("@rules_python//python:pip.bzl", "pip_parse")
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
load("@rules_python//python:pip.bzl", "pip_parse")

def rules_fuzzing_init():
pip_parse(
Expand Down
10 changes: 5 additions & 5 deletions fuzzing/java_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ Definitions outside this file are private unless otherwise noted, and may
change without notice.
"""

load(
"//fuzzing/private:fuzz_test.bzl",
_fuzzing_decoration = "fuzzing_decoration",
_java_fuzz_test = "java_fuzz_test",
)
load(
"//fuzzing/private:engine.bzl",
_FuzzingEngineInfo = "FuzzingEngineInfo",
_java_fuzzing_engine = "java_fuzzing_engine",
)
load(
"//fuzzing/private:fuzz_test.bzl",
_fuzzing_decoration = "fuzzing_decoration",
_java_fuzz_test = "java_fuzz_test",
)

java_fuzz_test = _java_fuzz_test
java_fuzzing_engine = _java_fuzzing_engine
Expand Down
10 changes: 5 additions & 5 deletions fuzzing/private/binary.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
"""Defines a rule for creating an instrumented fuzzing executable."""

load("@bazel_skylib//lib:dicts.bzl", "dicts")
load(
"//fuzzing:instrum_opts.bzl",
"instrum_configs",
"sanitizer_configs",
)
load("//fuzzing/private:engine.bzl", "FuzzingEngineInfo")
load(
"//fuzzing/private:instrum_opts.bzl",
"instrum_defaults",
"instrum_opts",
)
load(
"//fuzzing:instrum_opts.bzl",
"instrum_configs",
"sanitizer_configs",
)

FuzzingBinaryInfo = provider(
doc = """
Expand Down
4 changes: 2 additions & 2 deletions fuzzing/private/engine_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

"""Unit tests for the fuzzing engine rules and providers."""

load("@bazel_skylib//lib:unittest.bzl", "analysistest", "asserts")
load("@bazel_skylib//lib:new_sets.bzl", "sets")
load(":engine.bzl", "FuzzingEngineInfo", "cc_fuzzing_engine")
load("@bazel_skylib//lib:unittest.bzl", "analysistest", "asserts")
load("@rules_cc//cc:defs.bzl", "cc_library")
load(":engine.bzl", "FuzzingEngineInfo", "cc_fuzzing_engine")
load(":util.bzl", "generate_file")

# Shared fixtures.
Expand Down
4 changes: 2 additions & 2 deletions fuzzing/private/fuzz_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

"""The implementation of the {cc, java}_fuzz_test rules."""

load("@rules_fuzzing_oss_fuzz//:instrum.bzl", "native_library_sanitizer")
load("@rules_cc//cc:defs.bzl", "cc_binary")
load("@rules_fuzzing_oss_fuzz//:instrum.bzl", "native_library_sanitizer")
load("//fuzzing/private:binary.bzl", "fuzzing_binary", "fuzzing_binary_uninstrumented")

# FIXME: Including this leads to a Stardoc error since defs.bzl is not visible. As a workaround, use native.java_binary.
#load("@rules_java//java:defs.bzl", "java_binary")
load("//fuzzing/private:common.bzl", "fuzzing_corpus", "fuzzing_dictionary", "fuzzing_launcher")
load("//fuzzing/private:binary.bzl", "fuzzing_binary", "fuzzing_binary_uninstrumented")
load("//fuzzing/private:java_utils.bzl", "determine_primary_class", "jazzer_fuzz_binary")
load("//fuzzing/private:regression.bzl", "fuzzing_regression_test")
load("//fuzzing/private/oss_fuzz:package.bzl", "oss_fuzz_package")
Expand Down
2 changes: 1 addition & 1 deletion fuzzing/tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

# This package contains tool scripts

load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")
load("@fuzzing_py_deps//:requirements.bzl", "requirement")
load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")

# Tools.
########
Expand Down
Loading