Skip to content

Commit c6c704a

Browse files
committed
run buildifier over all source files
$ buildifier -r .
1 parent eab7765 commit c6c704a

File tree

8 files changed

+622
-613
lines changed

8 files changed

+622
-613
lines changed

WORKSPACE

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
workspace(name = "io_bazel_rules_dart")
22

33
load("//dart/build_rules:repositories.bzl", "dart_repositories")
4+
45
dart_repositories()

dart/build_rules/core.bzl

+17-19
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,31 @@
1414

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

17-
1817
load(":internal.bzl", "assert_third_party_licenses", "make_dart_context")
1918

20-
2119
def _dart_library_impl(ctx):
22-
"""Implements the dart_library() rule."""
23-
assert_third_party_licenses(ctx)
20+
"""Implements the dart_library() rule."""
21+
assert_third_party_licenses(ctx)
2422

25-
dart_ctx = make_dart_context(ctx.label,
26-
srcs=ctx.files.srcs,
27-
data=ctx.files.data,
28-
deps=ctx.attr.deps)
29-
30-
return struct(
31-
dart=dart_ctx,
32-
)
23+
dart_ctx = make_dart_context(
24+
ctx.label,
25+
srcs = ctx.files.srcs,
26+
data = ctx.files.data,
27+
deps = ctx.attr.deps,
28+
)
3329

30+
return struct(
31+
dart = dart_ctx,
32+
)
3433

3534
dart_library_attrs = {
36-
"srcs": attr.label_list(allow_files=True, mandatory=True),
37-
"data": attr.label_list(allow_files=True),
38-
"deps": attr.label_list(providers=["dart"]),
39-
"license_files": attr.label_list(allow_files=True)
35+
"srcs": attr.label_list(allow_files = True, mandatory = True),
36+
"data": attr.label_list(allow_files = True),
37+
"deps": attr.label_list(providers = ["dart"]),
38+
"license_files": attr.label_list(allow_files = True),
4039
}
4140

42-
4341
dart_library = rule(
44-
implementation=_dart_library_impl,
45-
attrs=dart_library_attrs,
42+
implementation = _dart_library_impl,
43+
attrs = dart_library_attrs,
4644
)

0 commit comments

Comments
 (0)