Fix TapPresubmit and Buildifier errors (#260)
diff --git a/build.json b/build.json
index 4576ad1..df2c738 100644
--- a/build.json
+++ b/build.json
@@ -1,6 +1,7 @@
{
// A list of all source files required to build the Emboss compiler.
"embossc_sources": [
+ "/LICENSE",
"compiler/__init__.py",
"compiler/back_end/__init__.py",
"compiler/back_end/cpp/__init__.py",
@@ -49,6 +50,7 @@
],
// A list of all source files required for the Emboss C++ runtime.
"emboss_runtime_cpp_sources": [
+ "/LICENSE",
"runtime/cpp/emboss_arithmetic.h",
"runtime/cpp/emboss_arithmetic_all_known_generated.h",
"runtime/cpp/emboss_arithmetic_maximum_operation_generated.h",
diff --git a/compiler/back_end/cpp/BUILD b/compiler/back_end/cpp/BUILD
index 66218c6..3646c13 100644
--- a/compiler/back_end/cpp/BUILD
+++ b/compiler/back_end/cpp/BUILD
@@ -20,6 +20,7 @@
load(":build_defs.bzl", "cpp_golden_test", "emboss_cc_test")
package(
+ default_applicable_licenses = ["//:license"],
default_visibility = [
"//visibility:private",
],
diff --git a/compiler/back_end/util/BUILD b/compiler/back_end/util/BUILD
index 5cf8c9b..fc2cc3d 100644
--- a/compiler/back_end/util/BUILD
+++ b/compiler/back_end/util/BUILD
@@ -18,6 +18,7 @@
load("@rules_python//python:py_test.bzl", "py_test")
package(
+ default_applicable_licenses = ["//:license"],
default_visibility = ["//compiler:__subpackages__"],
)
diff --git a/compiler/front_end/BUILD b/compiler/front_end/BUILD
index 5f7584b..97c1980 100644
--- a/compiler/front_end/BUILD
+++ b/compiler/front_end/BUILD
@@ -23,6 +23,7 @@
load("@rules_python//python:py_test.bzl", "py_test")
package(
+ default_applicable_licenses = ["//:license"],
default_visibility = [
"//:__subpackages__",
],
diff --git a/compiler/util/BUILD b/compiler/util/BUILD
index 2232ef3..5a10937 100644
--- a/compiler/util/BUILD
+++ b/compiler/util/BUILD
@@ -18,6 +18,7 @@
load("@rules_python//python:py_test.bzl", "py_test")
package(
+ default_applicable_licenses = ["//:license"],
default_visibility = ["//compiler:__subpackages__"],
)
diff --git a/doc/BUILD b/doc/BUILD
index b9dbd09..a01bce6 100644
--- a/doc/BUILD
+++ b/doc/BUILD
@@ -1,3 +1,6 @@
+package(
+ default_applicable_licenses = ["//:license"],
+)
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/integration/googletest/BUILD b/integration/googletest/BUILD
index cc94697..0d924f0 100644
--- a/integration/googletest/BUILD
+++ b/integration/googletest/BUILD
@@ -26,6 +26,9 @@
"@com_google_googletest//:gtest",
],
)
+package(
+ default_applicable_licenses = ["//:license"],
+)
cc_test(
name = "emboss_test_util_test",
diff --git a/runtime/cpp/BUILD b/runtime/cpp/BUILD
index 47ee169..b195ef8 100644
--- a/runtime/cpp/BUILD
+++ b/runtime/cpp/BUILD
@@ -37,6 +37,9 @@
],
visibility = ["//:__subpackages__"],
)
+package(
+ default_applicable_licenses = ["//:license"],
+)
cc_library(
name = "cpp_utils",
diff --git a/runtime/cpp/test/BUILD b/runtime/cpp/test/BUILD
index 99cc3aa..aa810b2 100644
--- a/runtime/cpp/test/BUILD
+++ b/runtime/cpp/test/BUILD
@@ -19,6 +19,9 @@
":build_defs.bzl",
"emboss_cc_util_test",
)
+package(
+ default_applicable_licenses = ["//:license"],
+)
emboss_cc_util_test(
name = "emboss_prelude_test",
diff --git a/testdata/BUILD b/testdata/BUILD
index 12def5d..2d3f623 100644
--- a/testdata/BUILD
+++ b/testdata/BUILD
@@ -22,6 +22,7 @@
)
package(
+ default_applicable_licenses = ["//:license"],
default_visibility = ["//:__subpackages__"],
)
diff --git a/testdata/golden_cpp/BUILD b/testdata/golden_cpp/BUILD
index d1f63ca..0916aa8 100644
--- a/testdata/golden_cpp/BUILD
+++ b/testdata/golden_cpp/BUILD
@@ -1,3 +1,6 @@
+package(
+ default_applicable_licenses = ["//:license"],
+)
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");