diff --git a/fuzzing/cc_defs.bzl b/fuzzing/cc_defs.bzl index 288148d..9703b34 100644 --- a/fuzzing/cc_defs.bzl +++ b/fuzzing/cc_defs.bzl @@ -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 diff --git a/fuzzing/engines/BUILD b/fuzzing/engines/BUILD index 541b265..040aaa3 100644 --- a/fuzzing/engines/BUILD +++ b/fuzzing/engines/BUILD @@ -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. ########################## diff --git a/fuzzing/init.bzl b/fuzzing/init.bzl index b6b4275..4e053af 100644 --- a/fuzzing/init.bzl +++ b/fuzzing/init.bzl @@ -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( diff --git a/fuzzing/java_defs.bzl b/fuzzing/java_defs.bzl index 27dbfae..623c5bb 100644 --- a/fuzzing/java_defs.bzl +++ b/fuzzing/java_defs.bzl @@ -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 diff --git a/fuzzing/private/binary.bzl b/fuzzing/private/binary.bzl index 0572a0f..93da31e 100644 --- a/fuzzing/private/binary.bzl +++ b/fuzzing/private/binary.bzl @@ -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 = """ diff --git a/fuzzing/private/engine_test.bzl b/fuzzing/private/engine_test.bzl index 14cc893..dee789b 100644 --- a/fuzzing/private/engine_test.bzl +++ b/fuzzing/private/engine_test.bzl @@ -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. diff --git a/fuzzing/private/fuzz_test.bzl b/fuzzing/private/fuzz_test.bzl index b35024a..83bec36 100644 --- a/fuzzing/private/fuzz_test.bzl +++ b/fuzzing/private/fuzz_test.bzl @@ -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") diff --git a/fuzzing/tools/BUILD b/fuzzing/tools/BUILD index 6797bc2..0f483ff 100644 --- a/fuzzing/tools/BUILD +++ b/fuzzing/tools/BUILD @@ -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. ########