@@ -92,7 +92,7 @@ if debug:
92
92
* Automatic fix: yes
93
93
* [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=attr-cfg `
94
94
95
- The [ Configuration] ( https://warn. docs.bazel.build/versions/master/skylark/rules.html#configurations )
95
+ The [ Configuration] ( https://docs.bazel.build/versions/master/skylark/rules.html#configurations )
96
96
` cfg = "data" ` is deprecated and has no effect. Consider removing it.
97
97
98
98
--------------------------------------------------------------------------------
@@ -115,7 +115,7 @@ The `attr.license()` method is almost never used and being deprecated.
115
115
* Automatic fix: yes
116
116
* [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=attr-non-empty `
117
117
118
- The ` non_empty ` [ attribute] ( https://warn. docs.bazel.build/versions/master/skylark/lib/attr.html )
118
+ The ` non_empty ` [ attribute] ( https://docs.bazel.build/versions/master/skylark/lib/attr.html )
119
119
for attr definitions is deprecated, please use ` allow_empty ` with an opposite value instead.
120
120
121
121
--------------------------------------------------------------------------------
@@ -140,7 +140,7 @@ for these attributes instead.
140
140
* Automatic fix: yes
141
141
* [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=attr-single-file `
142
142
143
- The ` single_file ` [ attribute] ( https://warn. docs.bazel.build/versions/master/skylark/lib/attr.html )
143
+ The ` single_file ` [ attribute] ( https://docs.bazel.build/versions/master/skylark/lib/attr.html )
144
144
is deprecated, please use ` allow_single_file ` instead.
145
145
146
146
--------------------------------------------------------------------------------
@@ -188,7 +188,7 @@ The names `l`, `I`, or `O` can be easily confused with `I`, `l`, or `0` correspo
188
188
* Automatic fix: no
189
189
* [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=constant-glob `
190
190
191
- [ Glob function] ( https://warn. docs.bazel.build/versions/master/be/functions.html#glob )
191
+ [ Glob function] ( https://docs.bazel.build/versions/master/be/functions.html#glob )
192
192
is used to get a list of files from the depot. The patterns (the first argument)
193
193
typically include a wildcard (* character). A pattern without a wildcard is
194
194
often useless and sometimes harmful.
@@ -230,16 +230,16 @@ performance (glob can be relatively slow):
230
230
* Automatic fix: yes
231
231
* [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=ctx-actions `
232
232
233
- The following [ actions] ( https://warn. docs.bazel.build/versions/master/skylark/lib/actions.html )
233
+ The following [ actions] ( https://docs.bazel.build/versions/master/skylark/lib/actions.html )
234
234
are deprecated, please use the new API:
235
235
236
- * [ ` ctx.new_file ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/ctx.html#new_file ) → [ ` ctx.actions.declare_file ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/actions.html#declare_file )
237
- * ` ctx.experimental_new_directory ` → [ ` ctx.actions.declare_directory ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/actions.html#declare_directory )
238
- * [ ` ctx.file_action ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/ctx.html#file_action ) → [ ` ctx.actions.write ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/actions.html#write )
239
- * [ ` ctx.action(command = "...") ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/ctx.html#action ) → [ ` ctx.actions.run_shell ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/actions.html#run_shell )
240
- * [ ` ctx.action(executable = "...") ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/ctx.html#action ) → [ ` ctx.actions.run ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/actions.html#run )
241
- * [ ` ctx.empty_action ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/ctx.html#empty_action ) → [ ` ctx.actions.do_nothing ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/actions.html#do_nothing )
242
- * [ ` ctx.template_action ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/ctx.html#template_action ) → [ ` ctx.actions.expand_template ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/actions.html#expand_template )
236
+ * [ ` ctx.new_file ` ] ( https://docs.bazel.build/versions/master/skylark/lib/ctx.html#new_file ) → [ ` ctx.actions.declare_file ` ] ( https://docs.bazel.build/versions/master/skylark/lib/actions.html#declare_file )
237
+ * ` ctx.experimental_new_directory ` → [ ` ctx.actions.declare_directory ` ] ( https://docs.bazel.build/versions/master/skylark/lib/actions.html#declare_directory )
238
+ * [ ` ctx.file_action ` ] ( https://docs.bazel.build/versions/master/skylark/lib/ctx.html#file_action ) → [ ` ctx.actions.write ` ] ( https://docs.bazel.build/versions/master/skylark/lib/actions.html#write )
239
+ * [ ` ctx.action(command = "...") ` ] ( https://docs.bazel.build/versions/master/skylark/lib/ctx.html#action ) → [ ` ctx.actions.run_shell ` ] ( https://docs.bazel.build/versions/master/skylark/lib/actions.html#run_shell )
240
+ * [ ` ctx.action(executable = "...") ` ] ( https://docs.bazel.build/versions/master/skylark/lib/ctx.html#action ) → [ ` ctx.actions.run ` ] ( https://docs.bazel.build/versions/master/skylark/lib/actions.html#run )
241
+ * [ ` ctx.empty_action ` ] ( https://docs.bazel.build/versions/master/skylark/lib/ctx.html#empty_action ) → [ ` ctx.actions.do_nothing ` ] ( https://docs.bazel.build/versions/master/skylark/lib/actions.html#do_nothing )
242
+ * [ ` ctx.template_action ` ] ( https://docs.bazel.build/versions/master/skylark/lib/ctx.html#template_action ) → [ ` ctx.actions.expand_template ` ] ( https://docs.bazel.build/versions/master/skylark/lib/actions.html#expand_template )
243
243
244
244
--------------------------------------------------------------------------------
245
245
@@ -250,10 +250,10 @@ are deprecated, please use the new API:
250
250
* Automatic fix: yes
251
251
* [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=ctx-args `
252
252
253
- It's deprecated to use the [ ` add ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/Args.html#add )
253
+ It's deprecated to use the [ ` add ` ] ( https://docs.bazel.build/versions/master/skylark/lib/Args.html#add )
254
254
method of ` ctx.actions.args() ` to add a list (or a depset) of variables. Please use either
255
- [ ` add_all ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/Args.html#add_all ) or
256
- [ ` add_joined ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/Args.html#add_joined ) ,
255
+ [ ` add_all ` ] ( https://docs.bazel.build/versions/master/skylark/lib/Args.html#add_all ) or
256
+ [ ` add_joined ` ] ( https://docs.bazel.build/versions/master/skylark/lib/Args.html#add_joined ) ,
257
257
depending on the desired behavior.
258
258
259
259
--------------------------------------------------------------------------------
@@ -277,7 +277,7 @@ the [`function-docstring`](function-docstring) warning.
277
277
* Automatic fix: no
278
278
* [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=depset-items `
279
279
280
- The ` items ` parameter for [ ` depset ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/globals.html#depset )
280
+ The ` items ` parameter for [ ` depset ` ] ( https://docs.bazel.build/versions/master/skylark/lib/globals.html#depset )
281
281
is deprecated. In it's old form it's either a list of direct elements to be
282
282
added (use the ` direct ` or unnamed first parameter instead) or a depset that
283
283
becomes a transitive element of the new depset (use the ` transitive ` parameter
@@ -319,17 +319,17 @@ depset1 | depset2
319
319
depset1.union(depset2)
320
320
```
321
321
322
- Please use the [ depset] ( https://warn. docs.bazel.build/versions/master/skylark/lib/depset.html ) constructor
322
+ Please use the [ depset] ( https://docs.bazel.build/versions/master/skylark/lib/depset.html ) constructor
323
323
instead:
324
324
325
325
``` python
326
326
depset(transitive = [depset1, depset2])
327
327
```
328
328
329
329
When fixing this issue, make sure you
330
- [ understand depsets] ( https://warn. docs.bazel.build/versions/master/skylark/depsets.html )
330
+ [ understand depsets] ( https://docs.bazel.build/versions/master/skylark/depsets.html )
331
331
and try to
332
- [ reduce the number of calls to depset] ( https://warn. docs.bazel.build/versions/master/skylark/performance.html#reduce-the-number-of-calls-to-depset ) .
332
+ [ reduce the number of calls to depset] ( https://docs.bazel.build/versions/master/skylark/performance.html#reduce-the-number-of-calls-to-depset ) .
333
333
334
334
--------------------------------------------------------------------------------
335
335
@@ -399,7 +399,7 @@ To fix the issue just change the name attribute of one rule/macro.
399
399
* [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=filetype `
400
400
401
401
The function ` FileType ` is deprecated. Instead of using it as an argument to the
402
- [ ` rule ` function] ( https://warn. docs.bazel.build/versions/master/skylark/lib/globals.html#rule )
402
+ [ ` rule ` function] ( https://docs.bazel.build/versions/master/skylark/lib/globals.html#rule )
403
403
just use a list of strings.
404
404
405
405
--------------------------------------------------------------------------------
@@ -532,7 +532,7 @@ Transforming `x += [expr]` to `x.append(expr)` avoids a list allocation.
532
532
533
533
### Background
534
534
535
- [ load] ( https://warn. docs.bazel.build/versions/master/skylark/concepts.html#loading-an-extension )
535
+ [ load] ( https://docs.bazel.build/versions/master/skylark/concepts.html#loading-an-extension )
536
536
is used to import definitions in a BUILD file. If the definition is not used in
537
537
the file, the load can be safely removed. If a symbol is loaded two times, you
538
538
will get a warning on the second occurrence.
@@ -712,7 +712,7 @@ of a symbol load and its usage can change resulting in runtime error.
712
712
* [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=output-group `
713
713
714
714
The ` output_group ` field of a target is deprecated in favor of the
715
- [ ` OutputGroupInfo ` provider] ( https://warn. docs.bazel.build/versions/master/skylark/lib/OutputGroupInfo.html ) .
715
+ [ ` OutputGroupInfo ` provider] ( https://docs.bazel.build/versions/master/skylark/lib/OutputGroupInfo.html ) .
716
716
717
717
--------------------------------------------------------------------------------
718
718
@@ -749,9 +749,9 @@ x = depset(..., transitive = [y.deps for y in ...])
749
749
```
750
750
751
751
For more information, read Bazel documentation about
752
- [ depsets] ( https://warn. docs.bazel.build/versions/master/skylark/depsets.html )
752
+ [ depsets] ( https://docs.bazel.build/versions/master/skylark/depsets.html )
753
753
and
754
- [ reducing the number of calls to depset] ( https://warn. docs.bazel.build/versions/master/skylark/performance.html#reduce-the-number-of-calls-to-depset ) .
754
+ [ reducing the number of calls to depset] ( https://docs.bazel.build/versions/master/skylark/performance.html#reduce-the-number-of-calls-to-depset ) .
755
755
756
756
--------------------------------------------------------------------------------
757
757
763
763
* [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=package-name `
764
764
765
765
The global variable ` PACKAGE_NAME ` is deprecated, please use
766
- [ ` native.package_name() ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/native.html#package_name )
766
+ [ ` native.package_name() ` ] ( https://docs.bazel.build/versions/master/skylark/lib/native.html#package_name )
767
767
instead.
768
768
769
769
--------------------------------------------------------------------------------
@@ -873,7 +873,7 @@ AllInfo = provider("This provider accepts any field.", fields = None)
873
873
NoneInfo = provider(" This provider cannot have fields." , fields = [])
874
874
```
875
875
876
- See the [ documentation for providers] ( https://warn. docs.bazel.build/versions/master/skylark/lib/globals.html#provider ) .
876
+ See the [ documentation for providers] ( https://docs.bazel.build/versions/master/skylark/lib/globals.html#provider ) .
877
877
878
878
--------------------------------------------------------------------------------
879
879
@@ -906,7 +906,7 @@ forbid reassignment, but not every side-effect.
906
906
* [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=repository-name `
907
907
908
908
The global variable ` REPOSITORY_NAME ` is deprecated, please use
909
- [ ` native.repository_name() ` ] ( https://warn. docs.bazel.build/versions/master/skylark/lib/native.html#repository_name )
909
+ [ ` native.repository_name() ` ] ( https://docs.bazel.build/versions/master/skylark/lib/native.html#repository_name )
910
910
instead.
911
911
912
912
--------------------------------------------------------------------------------
@@ -932,9 +932,9 @@ know certain parts of the code cannot be reached, add the statement
932
932
* [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=rule-impl-return `
933
933
934
934
Returning structs from rule implementation functions is
935
- [ deprecated] ( https://warn. docs.bazel.build/versions/master/skylark/rules.html#migrating-from-legacy-providers ) ,
935
+ [ deprecated] ( https://docs.bazel.build/versions/master/skylark/rules.html#migrating-from-legacy-providers ) ,
936
936
consider using
937
- [ providers] ( https://warn. docs.bazel.build/versions/master/skylark/rules.html#providers )
937
+ [ providers] ( https://docs.bazel.build/versions/master/skylark/rules.html#providers )
938
938
or lists of providers instead.
939
939
940
940
--------------------------------------------------------------------------------
@@ -947,7 +947,7 @@ or lists of providers instead.
947
947
948
948
### Background
949
949
950
- [ load] ( https://warn. docs.bazel.build/versions/master/skylark/concepts.html#loading-an-extension )
950
+ [ load] ( https://docs.bazel.build/versions/master/skylark/concepts.html#loading-an-extension )
951
951
is used to import definitions in a BUILD file. If the same label is used for loading
952
952
symbols more the ones, all such loads can be merged into a single one.
953
953
0 commit comments