Skip to content

Commit 9ff33a2

Browse files
authored
Migrate to use defs.bzl instead of swiftformat.bzl. (#52)
1 parent d0ff137 commit 9ff33a2

File tree

14 files changed

+67
-35
lines changed

14 files changed

+67
-35
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ In every Bazel package that contains Swift source files, add a
118118

119119
```python
120120
load(
121-
"@cgrindel_rules_swiftformat//swiftformat:swiftformat.bzl",
121+
"@cgrindel_rules_swiftformat//swiftformat:defs.bzl",
122122
"swiftformat_pkg",
123123
)
124124

doc/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ load(
1111

1212
_RULES_AND_MACROS_DOC_PROVIDER = doc_providers.create(
1313
name = "rules_and_macros_overview",
14-
stardoc_input = "//swiftformat:swiftformat.bzl",
14+
stardoc_input = "//swiftformat:defs.bzl",
1515
symbols = [
1616
"swiftformat_binary",
1717
"swiftformat_format",
@@ -38,7 +38,7 @@ _API_SRCS = [
3838
_API_DOC_PROVIDERS = [
3939
doc_providers.create(
4040
name = name,
41-
stardoc_input = "//swiftformat:swiftformat.bzl",
41+
stardoc_input = "//swiftformat:defs.bzl",
4242
symbols = [name],
4343
deps = ["//swiftformat"],
4444
)
@@ -51,7 +51,7 @@ _ALL_DOC_PROVIDERS = [
5151
doc_providers.create(
5252
name = "api",
5353
is_stardoc = False,
54-
stardoc_input = "//swiftformat:swiftformat.bzl",
54+
stardoc_input = "//swiftformat:defs.bzl",
5555
deps = ["//swiftformat"],
5656
),
5757
] + _API_DOC_PROVIDERS

doc/integrate_with_rules_swift.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The following shows a `BUILD.bazel` file that uses the
4343

4444
```python
4545
load(
46-
"@cgrindel_rules_swiftformat//swiftformat:swiftformat.bzl",
46+
"@cgrindel_rules_swiftformat//swiftformat:defs.bzl",
4747
"swiftformat_library",
4848
)
4949

@@ -74,7 +74,7 @@ Now, create a `swift_library.bzl` file with the following contents:
7474

7575
```python
7676
load(
77-
"@cgrindel_rules_swiftformat//swiftformat:swiftformat.bzl",
77+
"@cgrindel_rules_swiftformat//swiftformat:defs.bzl",
7878
"swiftformat_library",
7979
)
8080

examples/exclude_files/Sources/App/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load(
2-
"@cgrindel_rules_swiftformat//swiftformat:swiftformat.bzl",
2+
"@cgrindel_rules_swiftformat//swiftformat:defs.bzl",
33
"swiftformat_binary",
44
)
55

examples/exclude_files/Sources/Foo/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load(
2-
"@cgrindel_rules_swiftformat//swiftformat:swiftformat.bzl",
2+
"@cgrindel_rules_swiftformat//swiftformat:defs.bzl",
33
"swiftformat_library",
44
)
55

examples/exclude_files/Tests/FooTests/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load(
2-
"@cgrindel_rules_swiftformat//swiftformat:swiftformat.bzl",
2+
"@cgrindel_rules_swiftformat//swiftformat:defs.bzl",
33
"swiftformat_test",
44
)
55

examples/rules_swift_helpers/Sources/App/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load(
2-
"@cgrindel_rules_swiftformat//swiftformat:swiftformat.bzl",
2+
"@cgrindel_rules_swiftformat//swiftformat:defs.bzl",
33
"swiftformat_binary",
44
)
55

examples/rules_swift_helpers/Sources/Foo/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load(
2-
"@cgrindel_rules_swiftformat//swiftformat:swiftformat.bzl",
2+
"@cgrindel_rules_swiftformat//swiftformat:defs.bzl",
33
"swiftformat_library",
44
)
55

examples/rules_swift_helpers/Tests/FooTests/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load(
2-
"@cgrindel_rules_swiftformat//swiftformat:swiftformat.bzl",
2+
"@cgrindel_rules_swiftformat//swiftformat:defs.bzl",
33
"swiftformat_test",
44
)
55

examples/simple/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_binary")
22
load(
3-
"@cgrindel_rules_swiftformat//swiftformat:swiftformat.bzl",
3+
"@cgrindel_rules_swiftformat//swiftformat:defs.bzl",
44
"swiftformat_pkg",
55
)
66
load(

0 commit comments

Comments
 (0)