Skip to content

Commit

Permalink
run buildifier over all source files
Browse files Browse the repository at this point in the history
$ buildifier -r .
  • Loading branch information
bartekpacia committed Dec 28, 2023
1 parent e324107 commit 80029b9
Show file tree
Hide file tree
Showing 8 changed files with 622 additions and 613 deletions.
1 change: 1 addition & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
workspace(name = "io_bazel_rules_dart")

load("//dart/build_rules:repositories.bzl", "dart_repositories")

dart_repositories()
36 changes: 17 additions & 19 deletions dart/build_rules/core.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,31 @@

"""Dart rules shared across deployment platforms."""


load(":internal.bzl", "assert_third_party_licenses", "make_dart_context")


def _dart_library_impl(ctx):
"""Implements the dart_library() rule."""
assert_third_party_licenses(ctx)
"""Implements the dart_library() rule."""
assert_third_party_licenses(ctx)

dart_ctx = make_dart_context(ctx.label,
srcs=ctx.files.srcs,
data=ctx.files.data,
deps=ctx.attr.deps)

return struct(
dart=dart_ctx,
)
dart_ctx = make_dart_context(
ctx.label,
srcs = ctx.files.srcs,
data = ctx.files.data,
deps = ctx.attr.deps,
)

return struct(
dart = dart_ctx,
)

dart_library_attrs = {
"srcs": attr.label_list(allow_files=True, mandatory=True),
"data": attr.label_list(allow_files=True),
"deps": attr.label_list(providers=["dart"]),
"license_files": attr.label_list(allow_files=True)
"srcs": attr.label_list(allow_files = True, mandatory = True),
"data": attr.label_list(allow_files = True),
"deps": attr.label_list(providers = ["dart"]),
"license_files": attr.label_list(allow_files = True),
}


dart_library = rule(
implementation=_dart_library_impl,
attrs=dart_library_attrs,
implementation = _dart_library_impl,
attrs = dart_library_attrs,
)
Loading

0 comments on commit 80029b9

Please sign in to comment.