Unclaimed project
Are you a maintainer of compose-lints? Claim this project to take control of your public changelog and roadmap.
Claim this projectChangelog
compose-lints
Lint checks to aid with a healthy adoption of Compose
androidcomposejetpack-composekotlinlintstatic-analysis+1
Last updated 5 days ago
Back to changelog
- New: Implement
SlotReused lint. See https://slackhq.github.io/compose-lints/rules/#do-not-invoke-slots-in-more-than-once-place for more information.
- Enhancement: Report the function name for readability in
ComposeContentEmitterReturningValues.
- Enhancement: Check for inherited
@Preview annotations up to four levels.
- Enhancement: Allow
@VisibleForTesting/@TestOnly-annotated preview composables to be public.
- Fix: Don't report duplicate errors about multiple content emitters.
- Fix: Normalize lint option loading to match with individual issues.
- Fix: Use name of parameter if text is not available.
- Removed: Delete obsolete
ComposeComposableModifier lint check.
- Various docs fixes.
- Build against Lint
8.7.0.
- Update
api and minApi to 16 (i.e. lint 8.7.0+). It's possible this may work with API 15 but we have not tested it.
- Test against Lint
8.8.0-alpha04.
- Test against K2 UAST.
- Build against Kotlin
2.0.20.
Special thanks to @alexvanyo, @seve-andre, @svenjacobs, @ychescale9, @shahzadansari, @kozaxinan, for contributing to this release!
What's Changed
- Update gradle/wrapper-validation-action action to v2 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/259
- Update dependency mkdocs-material to v9.5.6 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/258
- Update plugin detekt to v1.23.5 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/261
- Update lint-latest to v31.4.0-alpha07 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/256
- Update dependency mkdocs-material to v9.5.7 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/263
- Update dependency MarkupSafe to v2.1.5 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/262
- Update plugin lint to v8.4.0-alpha07 + Gradle 8.6 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/247
- Update gradle/gradle-build-action action to v3 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/257
- Update plugin lint to v8.4.0-alpha07 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/265
- Update plugin lint to v8.4.0-alpha08 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/270
- Update lint-latest to v31.4.0-alpha08 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/269
- Update dependency mkdocs-material to v9.5.8 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/272
- Use name of parameter if text is not available by @kozaxinan in https://github.com/slackhq/compose-lints/pull/274
- Update lint-latest to v31.4.0-alpha09 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/275
- Update plugin lint to v8.4.0-alpha09 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/276
- Update dependency mkdocs-material to v9.5.9 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/277
- Update lint-latest to v31.4.0-alpha10 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/278
- Update plugin lint to v8.4.0-alpha10 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/279
- Update dependency mkdocs-material to v9.5.10 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/280
- Update dependency future to v1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/283
- Update plugin lint to v8.4.0-alpha12 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/285
- Update dependency mkdocs-material to v9.5.12 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/286
- Update plugin ksp to v1.9.22-1.0.18 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/287
- Update dependency com.android.tools.lint:lint-api to v31.3.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/288
New Contributors
- @kozaxinan made their first contribution in https://github.com/slackhq/compose-lints/pull/274
- @shahzadansari made their first contribution in https://github.com/slackhq/compose-lints/pull/304
- @ychescale9 made their first contribution in https://github.com/slackhq/compose-lints/pull/364
- @svenjacobs made their first contribution in https://github.com/slackhq/compose-lints/pull/378
- @seve-andre made their first contribution in https://github.com/slackhq/compose-lints/pull/368
- @alexvanyo made their first contribution in https://github.com/slackhq/compose-lints/pull/384
Full Changelog: https://github.com/slackhq/compose-lints/compare/1.3.1...1.4.0
Update dependency python-dateutil to v2.9.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/289Update lint-latest to v31.4.0-alpha12 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/284Update dependency python-dateutil to v2.9.0.post0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/290Update plugin dokka to v1.9.20 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/294Update dependency pymdown-extensions to v10.7.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/293Update dependency mkdocs-material to v9.5.13 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/295Update dependency org.jetbrains.kotlin.jvm to v1.9.23 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/296Update lint-latest to v31.4.0-alpha13 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/297Update plugin ksp to v1.9.23-1.0.19 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/298Update lint config by @ZacSweers in https://github.com/slackhq/compose-lints/pull/300Fix broken reference link in Modifier rules section by @shahzadansari in https://github.com/slackhq/compose-lints/pull/304Remove broken link to Modifier.composed{ } by @shahzadansari in https://github.com/slackhq/compose-lints/pull/306Update plugin lint to v8.4.0-alpha13 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/301Update plugin mavenPublish to v0.28.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/302Update dependency Markdown to v3.6 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/305Update dependency mkdocs-material to v9.5.14 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/307Update dependency com.android.tools.lint:lint-api to v31.3.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/308Update lint-latest to v31.4.0-beta01 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/309Update plugin lint to v8.4.0-beta01 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/310Update dependency mkdocs-material to v9.5.15 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/311Update dependency gradle to v8.7 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/312Update plugin detekt to v1.23.6 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/313Update dependency mkdocs-material to v9.5.17 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/314Update plugin lint to v8.5.0-alpha04 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/317Update peaceiris/actions-gh-pages action to v4 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/319Update dependency com.android.tools.lint:lint-api to v31.3.2 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/320Update plugin ksp to v1.9.23-1.0.20 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/318Update lint-latest to v31.5.0-alpha04 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/316Update dependency pymdown-extensions to v10.8.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/327Update dependency com.facebook:ktfmt to v0.49 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/331Update dependency mkdocs-material to v9.5.19 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/325Update plugin lint to v8.5.0-alpha06 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/322Update lint-latest to v31.5.0-alpha07 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/321Update dependency mkdocs to v1.6.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/329Update gradle/wrapper-validation-action action to v3 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/324Update dependency com.android.tools.lint:lint-api to v31.4.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/333Update dependency Jinja2 to v3.1.4 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/337Update dependency Pygments to v2.18.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/336Update dependency mkdocs-material to v9.5.22 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/332Update plugin lint to v8.5.0-beta01 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/335Update lint-latest to v31.5.0-beta01 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/334Update dependency org.jetbrains.kotlin.jvm to v1.9.24 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/338Update dependency mkdocs-material to v9.5.24 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/341Update dependency com.android.tools.lint:lint-api to v31.4.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/345Update plugin lint to v8.6.0-alpha02 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/343Update lint-latest to v31.6.0-alpha02 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/342Update to K2 by @ZacSweers in https://github.com/slackhq/compose-lints/pull/264Update lint-latest to v31.6.0-alpha04 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/348Update plugin lint to v8.6.0-alpha04 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/349Update dependency gradle to v8.8 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/353Update plugin ksp to v2.0.0-1.0.22 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/354Update dependency mkdocs-material to v9.5.26 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/352Update dependency tornado to v6.4.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/355Update dependency com.facebook:ktfmt to v0.50 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/356Update lint-latest to v31.6.0-rc01 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/358Update plugin lint to v8.6.0-rc01 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/359Update dependency mkdocs-material to v9.5.31 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/363Update plugin mavenPublish to v0.29.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/365Fix issue id for ComposeUnstableReceiver in rules.md. by @ychescale9 in https://github.com/slackhq/compose-lints/pull/364Update plugin buildConfig to v5.4.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/370Update dependency gradle to v8.10 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/382Update dependency pymdown-extensions to v10.9 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/383Update dependency dev.zacsweers.autoservice:auto-service-ksp to v1.2.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/360Update dependency PyYAML to v6.0.2 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/380Update dependency livereload to v2.7.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/366Update kotlin and ksp to 2.0.20 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/371delete obsolete ComposeComposableModifier lint check by @svenjacobs in https://github.com/slackhq/compose-lints/pull/378Update dependency mkdocs-material to v9.5.33 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/385Update dependency Markdown to v3.7 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/386Update renovatebot/github-action action to v40 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/387Update lint-api to v31.5.2 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/361Normalize lint option loading to match with individual issues by @seve-andre in https://github.com/slackhq/compose-lints/pull/368Update gradle/actions action to v4 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/388Implement SlotReusedDetector by @alexvanyo in https://github.com/slackhq/compose-lints/pull/384Update lint.latest to v31.6.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/390Update plugin lint to v8.6.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/391Update dependency com.android.tools.lint:lint-api to v31.6.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/392Update dependency com.facebook:ktfmt to v0.52 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/362Update dependency mkdocs to v1.6.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/393Update dependency mkdocs-material to v9.5.34 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/394Fix snapshot publishing by @ZacSweers in https://github.com/slackhq/compose-lints/pull/397Test lint 31.7.x alphas by @ZacSweers in https://github.com/slackhq/compose-lints/pull/389Update lint.latest to v31.7.0-beta01 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/399Update plugin ksp to v2.0.20-1.0.25 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/400Update plugin detekt to v1.23.7 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/402Update dependency mkdocs-macros-plugin to v1.2.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/405Update dependency com.android.tools.lint:lint-api to v31.6.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/398Update plugin lint to v8.6.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/407Update dependency gradle to v8.10.2 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/401Update lint.latest to v31.7.0-rc01 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/403Update dependency pymdown-extensions to v10.11.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/409Update dependency mkdocs-material to v9.5.39 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/406Don't lint about default modifiers on extensions by @ZacSweers in https://github.com/slackhq/compose-lints/pull/410Fix duplicate emissions for multicontent by @ZacSweers in https://github.com/slackhq/compose-lints/pull/411Allow test-only previews to be public + better recurse by @ZacSweers in https://github.com/slackhq/compose-lints/pull/412Update dependency pymdown-extensions to v10.11.2 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/414Update plugin lint to v8.7.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/417Update lint.latest to v31.7.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/415Kotlin