Skip to content

Commit

Permalink
More bazel linting
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
  • Loading branch information
mjcarroll committed Mar 8, 2024
1 parent 8546cec commit 89e60d9
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 10 deletions.
4 changes: 4 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ load(
"gz_export_header",
"gz_include_header",
)
load(
"@gz//bazel/lint:lint.bzl",
"add_lint_tests",
)
load("@rules_license//rules:license.bzl", "license")

package(
Expand Down
10 changes: 8 additions & 2 deletions av/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ load(
"gz_export_header",
"gz_include_header",
)
load(
"@gz//bazel/lint:lint.bzl",
"add_lint_tests",
)

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

public_headers_no_gen = glob([
Expand Down Expand Up @@ -74,3 +78,5 @@ cc_library(
"@gtest//:gtest_main",
],
) for src in test_sources]

add_lint_tests()
11 changes: 10 additions & 1 deletion events/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@ load(
"gz_export_header",
"gz_include_header",
)
load(
"@gz//bazel/lint:lint.bzl",
"add_lint_tests",
)

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

public_headers_no_gen = glob([
"include/gz/common/*.hh",
Expand Down Expand Up @@ -62,3 +69,5 @@ cc_library(
"@gtest//:gtest_main",
],
) for src in test_sources]

add_lint_tests()
11 changes: 10 additions & 1 deletion geospatial/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@ load(
"gz_export_header",
"gz_include_header",
)
load(
"@gz//bazel/lint:lint.bzl",
"add_lint_tests",
)

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

public_headers_no_gen = glob([
"include/gz/common/*.hh",
Expand Down Expand Up @@ -69,3 +76,5 @@ cc_library(
"@gtest//:gtest_main",
],
) for src in test_sources]

add_lint_tests()
10 changes: 8 additions & 2 deletions graphics/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ load(
"gz_export_header",
"gz_include_header",
)
load(
"@gz//bazel/lint:lint.bzl",
"add_lint_tests",
)

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

public_headers_no_gen = glob([
Expand Down Expand Up @@ -76,3 +80,5 @@ cc_library(
"@gtest//:gtest_main",
],
) for src in test_sources]

add_lint_tests()
10 changes: 8 additions & 2 deletions io/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ load(
"gz_export_header",
"gz_include_header",
)
load(
"@gz//bazel/lint:lint.bzl",
"add_lint_tests",
)

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

public_headers_no_gen = glob([
Expand Down Expand Up @@ -69,3 +73,5 @@ cc_library(
"@gtest//:gtest_main",
],
) for src in test_sources]

add_lint_tests()
11 changes: 11 additions & 0 deletions profiler/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ load(
"gz_export_header",
"gz_include_header",
)
load(
"@gz//bazel/lint:lint.bzl",
"add_lint_tests",
)

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

# Configuration for UNIX
RMT_ENABLED = 1
Expand Down Expand Up @@ -118,3 +127,5 @@ cc_test(
"@gtest//:gtest_main",
],
)

add_lint_tests()
10 changes: 8 additions & 2 deletions testing/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ load(
"GZ_ROOT",
"gz_export_header",
)
load(
"@gz//bazel/lint:lint.bzl",
"add_lint_tests",
)

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

gz_export_header(
Expand Down Expand Up @@ -73,3 +77,5 @@ cc_test(
"@gtest//:gtest_main",
],
)

add_lint_tests()

0 comments on commit 89e60d9

Please sign in to comment.