Skip to content

Commit

Permalink
bazel lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Reflejo committed Feb 10, 2025
1 parent 96fb371 commit 6aaec22
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ bazel_dep(name = "flatbuffers", version = "24.3.25")
bazel_dep(name = "platforms", version = "0.0.11")
bazel_dep(name = "rules_kotlin", version = "2.0.0")
bazel_dep(name = "rules_rust", version = "0.56.0")
bazel_dep(name = "rules_shell", version = "0.4.0")

# Requiered by android_artifacts for pom_file, it's not in bazel central registry
bazel_dep(name = "google_bazel_common", version = "0.0.1")
Expand Down
3 changes: 2 additions & 1 deletion MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions bazel/android/dokka.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_java//java/common:java_common.bzl", "java_common")

def _sources_javadocs_impl(ctx):
javabase = ctx.attr._javabase[java_common.JavaRuntimeInfo]
plugins_classpath = ";".join([
Expand Down
3 changes: 3 additions & 0 deletions bazel/android_debug_info.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ But even if we could create those we'd need to get them out of the build
somehow, this rule provides a separate --output_group for this
"""

load("@rules_cc//cc/common:cc_common.bzl", "cc_common")
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")

def _impl(ctx):
library_outputs = []
objdump_outputs = []
Expand Down
1 change: 1 addition & 0 deletions bazel/ios/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
load("@rules_apple//apple:apple.bzl", "local_provisioning_profile")
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
load(
"@rules_xcodeproj//xcodeproj:defs.bzl",
"xcode_provisioning_profile",
Expand Down
2 changes: 2 additions & 0 deletions bazel/swift_header_collector.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Propagate the generated Swift header from a swift_library target
This exists to work around https://github.com/bazelbuild/rules_swift/issues/291
"""

load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")

def _swift_header_collector(ctx):
headers = [
DefaultInfo(
Expand Down
4 changes: 2 additions & 2 deletions examples/swift/hello_world/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ swift_library(
ios_application(
name = "ios_app",
bundle_id = "io.bitdrift.example.helloworld",
entitlements = "Protected.entitlements",
families = [
"iphone",
"ipad",
],
infoplists = ["Info.plist"],
minimum_os_version = "14.0",
entitlements = "Protected.entitlements",
provisioning_profile = select({
"//bazel:ios_device_build": "//bazel/ios:ios_provisioning_profile",
"//conditions:default": None,
Expand All @@ -67,12 +67,12 @@ swift_library(
ios_application(
name = "hello_world_app",
bundle_id = "io.bitdrift.example.helloworld",
entitlements = "Protected.entitlements",
families = [
"iphone",
"ipad",
],
infoplists = ["Info.plist"],
entitlements = "Protected.entitlements",
minimum_os_version = "14.0",
provisioning_profile = select({
"//bazel:ios_device_build": "//bazel/ios:ios_provisioning_profile",
Expand Down
1 change: 1 addition & 0 deletions tools/lint/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
load("@rules_multirun//:defs.bzl", "multirun", command = "command_force_opt")
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")

# Commands

Expand Down

0 comments on commit 6aaec22

Please sign in to comment.