Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Mar 8, 2024
1 parent b3ba7ab commit 8546cec
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 1 deletion.
11 changes: 10 additions & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,20 @@ load(
"gz_export_header",
"gz_include_header",
)
load("@rules_license//rules:license.bzl", "license")

package(
default_applicable_licenses = [GZ_ROOT + "common:license"],
default_visibility = GZ_VISIBILITY,
features = GZ_FEATURES,
)

licenses(["notice"]) # Apache-2.0
license(
name = "license",
package_name = "gz-common",
)

licenses(["notice"])

exports_files(["LICENSE"])

Expand Down Expand Up @@ -93,3 +100,5 @@ test_sources = glob(
"@gtest//:gtest_main",
],
) for src in test_sources]

add_lint_tests()
6 changes: 6 additions & 0 deletions av/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
load(
"@gz//bazel/skylark:build_defs.bzl",
"GZ_FEATURES",
"GZ_ROOT",
"GZ_VISIBILITY",
"gz_export_header",
"gz_include_header",
)

package(
default_applicable_licenses = [GZ_ROOT + "common:license"],
features = GZ_FEATURES
)

public_headers_no_gen = glob([
"include/gz/common/*.hh",
"include/gz/common/**/*.hh",
Expand Down
3 changes: 3 additions & 0 deletions events/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
load(
"@gz//bazel/skylark:build_defs.bzl",
"GZ_FEATURES",
"GZ_ROOT",
"GZ_VISIBILITY",
"gz_export_header",
"gz_include_header",
)

package(features = GZ_FEATURES)

public_headers_no_gen = glob([
"include/gz/common/*.hh",
"include/gz/common/**/*.hh",
Expand Down
3 changes: 3 additions & 0 deletions geospatial/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
load(
"@gz//bazel/skylark:build_defs.bzl",
"GZ_FEATURES",
"GZ_ROOT",
"GZ_VISIBILITY",
"gz_export_header",
"gz_include_header",
)

package(features = GZ_FEATURES)

public_headers_no_gen = glob([
"include/gz/common/*.hh",
"include/gz/common/**/*.hh",
Expand Down
6 changes: 6 additions & 0 deletions graphics/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
load(
"@gz//bazel/skylark:build_defs.bzl",
"GZ_FEATURES",
"GZ_ROOT",
"GZ_VISIBILITY",
"gz_export_header",
"gz_include_header",
)

package(
default_applicable_licenses = [GZ_ROOT + "common:license"],
features = GZ_FEATURES
)

public_headers_no_gen = glob([
"include/gz/common/*.hh",
"include/gz/common/**/*.hh",
Expand Down
6 changes: 6 additions & 0 deletions io/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
load(
"@gz//bazel/skylark:build_defs.bzl",
"GZ_FEATURES",
"GZ_ROOT",
"GZ_VISIBILITY",
"gz_export_header",
"gz_include_header",
)

package(
default_applicable_licenses = [GZ_ROOT + "common:license"],
features = GZ_FEATURES
)

public_headers_no_gen = glob([
"include/gz/common/*.hh",
"include/gz/common/**/*.hh",
Expand Down
1 change: 1 addition & 0 deletions profiler/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
load(
"@gz//bazel/skylark:build_defs.bzl",
"GZ_FEATURES",
"GZ_ROOT",
"GZ_VISIBILITY",
"cmake_configure_file",
Expand Down
6 changes: 6 additions & 0 deletions testing/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
load(
"@gz//bazel/skylark:build_defs.bzl",
"GZ_FEATURES",
"GZ_ROOT",
"gz_export_header",
)

package(
default_applicable_licenses = [GZ_ROOT + "common:license"],
features = GZ_FEATURES
)

gz_export_header(
name = "include/gz/common/testing/Export.hh",
export_base = "GZ_COMMON_TESTING",
Expand Down

0 comments on commit 8546cec

Please sign in to comment.