diff --git a/MODULE.bazel b/MODULE.bazel index a7a4123..46fc238 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -10,7 +10,7 @@ bazel_dep(name = "rules_kotlin", version = "1.9.5") bazel_dep(name = "bazel_skylib", version = "1.7.1") bazel_dep(name = "platforms", version = "0.0.8") -bazel_dep(name = "aspect_bazel_lib", version = "1.32.1", dev_dependency = True) +bazel_dep(name = "aspect_bazel_lib", version = "2.11.0", dev_dependency = True) bazel_dep(name = "buildifier_prebuilt", version = "6.1.2", dev_dependency = True) register_toolchains("//toolchains:android_lint_default_toolchain") diff --git a/docs/rules.md b/docs/rules.md index f3f1ad3..3d58279 100644 --- a/docs/rules.md +++ b/docs/rules.md @@ -2,14 +2,13 @@ Android Lint rules - ## android_lint
-android_lint(name, android_lint_config, autofix, custom_rules, deps, disable_checks, enable_checks,
-             is_test_sources, lib, manifest, resource_files, srcs, warnings_as_errors)
+android_lint(name, deps, srcs, android_lint_config, autofix, custom_rules, disable_checks,
+             enable_checks, is_test_sources, lib, manifest, resource_files, warnings_as_errors)
 
@@ -20,18 +19,18 @@ android_lint(name, name | A unique name for this target. | Name | required | | -| android_lint_config | Lint Android Lint configuration file. | Label | optional | None | -| autofix | Enables lint autofix. This is a no-op right now. | Boolean | optional | False | -| custom_rules | Custom lint rules to run. | List of labels | optional | [] | -| deps | Dependencies that should be on the classpath during execution. | List of labels | optional | [] | -| disable_checks | List of checks to disable. | List of strings | optional | [] | -| enable_checks | List of checks to enable. | List of strings | optional | [] | -| is_test_sources | True when linting test sources, otherwise false. | Boolean | optional | False | -| lib | The target being linted. This is needed to get the compiled R files. | Label | required | | -| manifest | Android manifest to run Android Lint against. | Label | optional | None | -| resource_files | Android resource files to run Android Lint against. | List of labels | optional | [] | +| deps | Dependencies that should be on the classpath during execution. | List of labels | optional | `[]` | | srcs | Sources to run Android Lint against. | List of labels | required | | -| warnings_as_errors | When true, lint will treat warnings as errors. | Boolean | optional | False | +| android_lint_config | Lint Android Lint configuration file. | Label | optional | `None` | +| autofix | Enables lint autofix. This is a no-op right now. | Boolean | optional | `False` | +| custom_rules | Custom lint rules to run. | List of labels | optional | `[]` | +| disable_checks | List of checks to disable. | List of strings | optional | `[]` | +| enable_checks | List of checks to enable. | List of strings | optional | `[]` | +| is_test_sources | True when linting test sources, otherwise false. | Boolean | optional | `False` | +| lib | The target being linted. This is needed to get the compiled R files. | Label | required | | +| manifest | Android manifest to run Android Lint against. | Label | optional | `None` | +| resource_files | Android resource files to run Android Lint against. | List of labels | optional | `[]` | +| warnings_as_errors | When true, lint will treat warnings as errors. | Boolean | optional | `False` | @@ -39,8 +38,8 @@ android_lint(name, name, android_lint_config, autofix, baseline, custom_rules, deps, disable_checks, - enable_checks, is_test_sources, lib, manifest, resource_files, srcs, +android_lint_test(name, deps, srcs, android_lint_config, autofix, baseline, custom_rules, + disable_checks, enable_checks, is_test_sources, lib, manifest, resource_files, warnings_as_errors) @@ -52,19 +51,19 @@ android_lint_test(name, name | A unique name for this target. | Name | required | | -| android_lint_config | Lint Android Lint configuration file. | Label | optional | None | -| autofix | Enables lint autofix. This is a no-op right now. | Boolean | optional | False | -| baseline | Lint baseline file. | Label | optional | None | -| custom_rules | Custom lint rules to run. | List of labels | optional | [] | -| deps | Dependencies that should be on the classpath during execution. | List of labels | optional | [] | -| disable_checks | List of checks to disable. | List of strings | optional | [] | -| enable_checks | List of checks to enable. | List of strings | optional | [] | -| is_test_sources | True when linting test sources, otherwise false. | Boolean | optional | False | -| lib | The target being linted. This is needed to get the compiled R files. | Label | required | | -| manifest | Android manifest to run Android Lint against. | Label | optional | None | -| resource_files | Android resource files to run Android Lint against. | List of labels | optional | [] | +| deps | Dependencies that should be on the classpath during execution. | List of labels | optional | `[]` | | srcs | Sources to run Android Lint against. | List of labels | required | | -| warnings_as_errors | When true, lint will treat warnings as errors. | Boolean | optional | False | +| android_lint_config | Lint Android Lint configuration file. | Label | optional | `None` | +| autofix | Enables lint autofix. This is a no-op right now. | Boolean | optional | `False` | +| baseline | Lint baseline file. | Label | optional | `None` | +| custom_rules | Custom lint rules to run. | List of labels | optional | `[]` | +| disable_checks | List of checks to disable. | List of strings | optional | `[]` | +| enable_checks | List of checks to enable. | List of strings | optional | `[]` | +| is_test_sources | True when linting test sources, otherwise false. | Boolean | optional | `False` | +| lib | The target being linted. This is needed to get the compiled R files. | Label | required | | +| manifest | Android manifest to run Android Lint against. | Label | optional | `None` | +| resource_files | Android resource files to run Android Lint against. | List of labels | optional | `[]` | +| warnings_as_errors | When true, lint will treat warnings as errors. | Boolean | optional | `False` |