compose-lints
compose-lints copied to clipboard
Lint checks to aid with a healthy adoption of Compose
[By definition](https://developer.android.com/develop/ui/compose/lifecycle#skipping) non-`Unit` returning functions are not skippable: Signalling a function being "always recomposed" on a non-skippable function seems pointless.
A common issue I find is when using a `when` in a composable and not propagating the `modifier` parameter to all branches, typically when a new branch is added. For...
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [six](https://redirect.github.com/benjaminp/six) | minor | `==1.16.0` -> `==1.17.0` | --- ### Release Notes benjaminp/six (six) ###...
Improves ModifierReusedDetector 1. **Use [DataFlowAnalyzer](https://googlesamples.github.io/android-custom-lint-rules/api-guide.html#dataflowanalyzer)**: It replaces the use of obtainAllModifierNames(), and directly tracks references, not just names. This catches more cases of modifier uses, such as tricky `Row(modifier =...
1. Improve lint fix by preserving original parameters structure: ``` fun Sample( modifier: Modifier = Modifier, text: String ) // Lint fix before fun Sample(text: String, modifier: Modifier = Modifier)...
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [tornado](http://www.tornadoweb.org/) ([source](https://redirect.github.com/tornadoweb/tornado)) | patch | `==6.4.1` -> `==6.4.2` | --- ### Release Notes tornadoweb/tornado (tornado)...
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mkdocs-macros-plugin](https://redirect.github.com/fralau/mkdocs_macros_plugin) | patch | `==1.3.6` -> `==1.3.7` | --- ### Release Notes fralau/mkdocs_macros_plugin (mkdocs-macros-plugin) ###...
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [pymdown-extensions](https://redirect.github.com/facelessuser/pymdown-extensions) | `==10.12` -> `==10.17.1` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release...
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [mkdocs-material](https://redirect.github.com/squidfunk/mkdocs-material) ([changelog](https://squidfunk.github.io/mkdocs-material/changelog/)) | `==9.6.12` -> `==9.7.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ###...
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [com.android.tools.lint:lint-api](http://tools.android.com/) ([source](https://android.googlesource.com/platform/tools/base)) | `31.9.2` -> `31.13.1` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ###...