@@ -41,9 +41,19 @@ Warning categories supported by buildifier's linter:
41
41
* [ ` native-build ` ] ( #native-build )
42
42
* [ ` native-cc ` ] ( #native-cc )
43
43
* [ ` native-cc-proto ` ] ( #native-cc-proto )
44
- * [ ` native-java ` ] ( #native-java )
44
+ * [ ` native-java-binary ` ] ( #native-java-binary )
45
+ * [ ` native-java-common ` ] ( #native-java-common )
46
+ * [ ` native-java-import ` ] ( #native-java-import )
47
+ * [ ` native-java-info ` ] ( #native-java-info )
48
+ * [ ` native-java-library ` ] ( #native-java-library )
45
49
* [ ` native-java-lite-proto ` ] ( #native-java-lite-proto )
50
+ * [ ` native-java-package-config ` ] ( #native-java-package-config )
51
+ * [ ` native-java-plugin ` ] ( #native-java-plugin )
52
+ * [ ` native-java-plugin-info ` ] ( #native-java-plugin-info )
46
53
* [ ` native-java-proto ` ] ( #native-java-proto )
54
+ * [ ` native-java-runtime ` ] ( #native-java-runtime )
55
+ * [ ` native-java-test ` ] ( #native-java-test )
56
+ * [ ` native-java-toolchain ` ] ( #native-java-toolchain )
47
57
* [ ` native-package ` ] ( #native-package )
48
58
* [ ` native-proto ` ] ( #native-proto )
49
59
* [ ` native-proto-common ` ] ( #native-proto-common )
@@ -713,19 +723,58 @@ The cc_proto_library rule should be loaded from Starlark.
713
723
714
724
--------------------------------------------------------------------------------
715
725
716
- ## <a name =" native-java " ></a >All Java build rules should be loaded from Starlark
726
+ ## <a name =" native-java-binary " ></a >All Java build rules should be loaded from Starlark
717
727
718
- * Category name: ` native-java `
719
- * Flag in Bazel: [ ` --incompatible_load_java_rules_from_bzl ` ] ( https://github.com/bazelbuild/bazel/issues/8746 )
728
+ * Category name: ` native-java-binary `
729
+ * Flag in Bazel: [ ` --incompatible_autoload_externally ` ] ( https://github.com/bazelbuild/bazel/issues/23043 )
720
730
* Automatic fix: yes
721
- * [ Disabled by default] ( buildifier/README.md#linter )
722
- * [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=native-java `
731
+ * [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=native-java-binary `
723
732
724
733
The Java build rules should be loaded from Starlark.
725
734
726
- Update: the plans for disabling native rules
727
- [ have been postponed] ( https://groups.google.com/g/bazel-discuss/c/XNvpWcge4AE/m/aJ-aQzszAwAJ ) ,
728
- at the moment it's not required to load Starlark rules.
735
+ --------------------------------------------------------------------------------
736
+
737
+ ## <a name =" native-java-common " ></a >All Java build rules should be loaded from Starlark
738
+
739
+ * Category name: ` native-java-common `
740
+ * Flag in Bazel: [ ` --incompatible_autoload_externally ` ] ( https://github.com/bazelbuild/bazel/issues/23043 )
741
+ * Automatic fix: yes
742
+ * [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=native-java-common `
743
+
744
+ The Java build rules should be loaded from Starlark.
745
+
746
+ --------------------------------------------------------------------------------
747
+
748
+ ## <a name =" native-java-import " ></a >All Java build rules should be loaded from Starlark
749
+
750
+ * Category name: ` native-java-import `
751
+ * Flag in Bazel: [ ` --incompatible_autoload_externally ` ] ( https://github.com/bazelbuild/bazel/issues/23043 )
752
+ * Automatic fix: yes
753
+ * [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=native-java-import `
754
+
755
+ The Java build rules should be loaded from Starlark.
756
+
757
+ --------------------------------------------------------------------------------
758
+
759
+ ## <a name =" native-java-info " ></a >All Java build rules should be loaded from Starlark
760
+
761
+ * Category name: ` native-java-info `
762
+ * Flag in Bazel: [ ` --incompatible_autoload_externally ` ] ( https://github.com/bazelbuild/bazel/issues/23043 )
763
+ * Automatic fix: yes
764
+ * [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=native-java-info `
765
+
766
+ The Java build rules should be loaded from Starlark.
767
+
768
+ --------------------------------------------------------------------------------
769
+
770
+ ## <a name =" native-java-library " ></a >All Java build rules should be loaded from Starlark
771
+
772
+ * Category name: ` native-java-library `
773
+ * Flag in Bazel: [ ` --incompatible_autoload_externally ` ] ( https://github.com/bazelbuild/bazel/issues/23043 )
774
+ * Automatic fix: yes
775
+ * [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=native-java-library `
776
+
777
+ The Java build rules should be loaded from Starlark.
729
778
730
779
--------------------------------------------------------------------------------
731
780
@@ -740,6 +789,39 @@ The java_lite_proto_library rule should be loaded from Starlark.
740
789
741
790
--------------------------------------------------------------------------------
742
791
792
+ ## <a name =" native-java-package-config " ></a >All Java build rules should be loaded from Starlark
793
+
794
+ * Category name: ` native-java-package-config `
795
+ * Flag in Bazel: [ ` --incompatible_autoload_externally ` ] ( https://github.com/bazelbuild/bazel/issues/23043 )
796
+ * Automatic fix: yes
797
+ * [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=native-java-package-config `
798
+
799
+ The Java build rules should be loaded from Starlark.
800
+
801
+ --------------------------------------------------------------------------------
802
+
803
+ ## <a name =" native-java-plugin " ></a >All Java build rules should be loaded from Starlark
804
+
805
+ * Category name: ` native-java-plugin `
806
+ * Flag in Bazel: [ ` --incompatible_autoload_externally ` ] ( https://github.com/bazelbuild/bazel/issues/23043 )
807
+ * Automatic fix: yes
808
+ * [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=native-java-plugin `
809
+
810
+ The Java build rules should be loaded from Starlark.
811
+
812
+ --------------------------------------------------------------------------------
813
+
814
+ ## <a name =" native-java-plugin-info " ></a >All Java build rules should be loaded from Starlark
815
+
816
+ * Category name: ` native-java-plugin-info `
817
+ * Flag in Bazel: [ ` --incompatible_autoload_externally ` ] ( https://github.com/bazelbuild/bazel/issues/23043 )
818
+ * Automatic fix: yes
819
+ * [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=native-java-plugin-info `
820
+
821
+ The Java build rules should be loaded from Starlark.
822
+
823
+ --------------------------------------------------------------------------------
824
+
743
825
## <a name =" native-java-proto " ></a >java_proto_library rule should be loaded from Starlark
744
826
745
827
* Category name: ` native-java-proto `
@@ -751,6 +833,39 @@ The java_proto_library rule should be loaded from Starlark.
751
833
752
834
--------------------------------------------------------------------------------
753
835
836
+ ## <a name =" native-java-runtime " ></a >All Java build rules should be loaded from Starlark
837
+
838
+ * Category name: ` native-java-runtime `
839
+ * Flag in Bazel: [ ` --incompatible_autoload_externally ` ] ( https://github.com/bazelbuild/bazel/issues/23043 )
840
+ * Automatic fix: yes
841
+ * [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=native-java-runtime `
842
+
843
+ The Java build rules should be loaded from Starlark.
844
+
845
+ --------------------------------------------------------------------------------
846
+
847
+ ## <a name =" native-java-test " ></a >All Java build rules should be loaded from Starlark
848
+
849
+ * Category name: ` native-java-test `
850
+ * Flag in Bazel: [ ` --incompatible_autoload_externally ` ] ( https://github.com/bazelbuild/bazel/issues/23043 )
851
+ * Automatic fix: yes
852
+ * [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=native-java-test `
853
+
854
+ The Java build rules should be loaded from Starlark.
855
+
856
+ --------------------------------------------------------------------------------
857
+
858
+ ## <a name =" native-java-toolchain " ></a >All Java build rules should be loaded from Starlark
859
+
860
+ * Category name: ` native-java-toolchain `
861
+ * Flag in Bazel: [ ` --incompatible_autoload_externally ` ] ( https://github.com/bazelbuild/bazel/issues/23043 )
862
+ * Automatic fix: yes
863
+ * [ Suppress the warning] ( #suppress ) : ` # buildifier: disable=native-java-toolchain `
864
+
865
+ The Java build rules should be loaded from Starlark.
866
+
867
+ --------------------------------------------------------------------------------
868
+
754
869
## <a name =" native-package " ></a >` native.package() ` shouldn't be used in .bzl files
755
870
756
871
* Category name: ` native-package `
0 commit comments