New
1.4.0
- New: Implement
SlotReusedlint. 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
@Previewannotations 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
ComposeComposableModifierlint check. - Various docs fixes.
- Build against Lint
8.7.0. - Update
apiandminApito16(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
- Update dependency python-dateutil to v2.9.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/289
- Update lint-latest to v31.4.0-alpha12 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/284
- Update dependency python-dateutil to v2.9.0.post0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/290
- Update plugin dokka to v1.9.20 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/294
- Update dependency pymdown-extensions to v10.7.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/293
- Update dependency mkdocs-material to v9.5.13 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/295
- Update dependency org.jetbrains.kotlin.jvm to v1.9.23 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/296
- Update lint-latest to v31.4.0-alpha13 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/297
- Update plugin ksp to v1.9.23-1.0.19 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/298
- Update lint config by @ZacSweers in https://github.com/slackhq/compose-lints/pull/300
- Fix broken reference link in Modifier rules section by @shahzadansari in https://github.com/slackhq/compose-lints/pull/304
- Remove broken link to Modifier.composed{ } by @shahzadansari in https://github.com/slackhq/compose-lints/pull/306
- Update plugin lint to v8.4.0-alpha13 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/301
- Update plugin mavenPublish to v0.28.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/302
- Update dependency Markdown to v3.6 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/305
- Update dependency mkdocs-material to v9.5.14 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/307
- Update dependency com.android.tools.lint:lint-api to v31.3.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/308
- Update lint-latest to v31.4.0-beta01 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/309
- Update plugin lint to v8.4.0-beta01 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/310
- Update dependency mkdocs-material to v9.5.15 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/311
- Update dependency gradle to v8.7 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/312
- Update plugin detekt to v1.23.6 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/313
- Update dependency mkdocs-material to v9.5.17 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/314
- Update plugin lint to v8.5.0-alpha04 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/317
- Update peaceiris/actions-gh-pages action to v4 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/319
- Update dependency com.android.tools.lint:lint-api to v31.3.2 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/320
- Update plugin ksp to v1.9.23-1.0.20 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/318
- Update lint-latest to v31.5.0-alpha04 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/316
- Update dependency pymdown-extensions to v10.8.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/327
- Update dependency com.facebook:ktfmt to v0.49 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/331
- Update dependency mkdocs-material to v9.5.19 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/325
- Update plugin lint to v8.5.0-alpha06 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/322
- Update lint-latest to v31.5.0-alpha07 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/321
- Update dependency mkdocs to v1.6.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/329
- Update gradle/wrapper-validation-action action to v3 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/324
- Update dependency com.android.tools.lint:lint-api to v31.4.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/333
- Update dependency Jinja2 to v3.1.4 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/337
- Update dependency Pygments to v2.18.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/336
- Update dependency mkdocs-material to v9.5.22 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/332
- Update plugin lint to v8.5.0-beta01 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/335
- Update lint-latest to v31.5.0-beta01 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/334
- Update dependency org.jetbrains.kotlin.jvm to v1.9.24 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/338
- Update dependency mkdocs-material to v9.5.24 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/341
- Update dependency com.android.tools.lint:lint-api to v31.4.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/345
- Update plugin lint to v8.6.0-alpha02 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/343
- Update lint-latest to v31.6.0-alpha02 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/342
- Update to K2 by @ZacSweers in https://github.com/slackhq/compose-lints/pull/264
- Update lint-latest to v31.6.0-alpha04 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/348
- Update plugin lint to v8.6.0-alpha04 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/349
- Update dependency gradle to v8.8 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/353
- Update plugin ksp to v2.0.0-1.0.22 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/354
- Update dependency mkdocs-material to v9.5.26 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/352
- Update dependency tornado to v6.4.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/355
- Update dependency com.facebook:ktfmt to v0.50 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/356
- Update lint-latest to v31.6.0-rc01 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/358
- Update plugin lint to v8.6.0-rc01 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/359
- Update dependency mkdocs-material to v9.5.31 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/363
- Update plugin mavenPublish to v0.29.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/365
- Fix issue id for
ComposeUnstableReceiverin rules.md. by @ychescale9 in https://github.com/slackhq/compose-lints/pull/364 - Update plugin buildConfig to v5.4.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/370
- Update dependency gradle to v8.10 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/382
- Update dependency pymdown-extensions to v10.9 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/383
- Update dependency dev.zacsweers.autoservice:auto-service-ksp to v1.2.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/360
- Update dependency PyYAML to v6.0.2 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/380
- Update dependency livereload to v2.7.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/366
- Update kotlin and ksp to 2.0.20 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/371
- delete obsolete ComposeComposableModifier lint check by @svenjacobs in https://github.com/slackhq/compose-lints/pull/378
- Update dependency mkdocs-material to v9.5.33 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/385
- Update dependency Markdown to v3.7 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/386
- Update renovatebot/github-action action to v40 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/387
- Update lint-api to v31.5.2 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/361
- Normalize lint option loading to match with individual issues by @seve-andre in https://github.com/slackhq/compose-lints/pull/368
- Update gradle/actions action to v4 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/388
- Implement SlotReusedDetector by @alexvanyo in https://github.com/slackhq/compose-lints/pull/384
- Update lint.latest to v31.6.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/390
- Update plugin lint to v8.6.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/391
- Update dependency com.android.tools.lint:lint-api to v31.6.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/392
- Update dependency com.facebook:ktfmt to v0.52 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/362
- Update dependency mkdocs to v1.6.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/393
- Update dependency mkdocs-material to v9.5.34 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/394
- Fix snapshot publishing by @ZacSweers in https://github.com/slackhq/compose-lints/pull/397
- Test lint 31.7.x alphas by @ZacSweers in https://github.com/slackhq/compose-lints/pull/389
- Update lint.latest to v31.7.0-beta01 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/399
- Update plugin ksp to v2.0.20-1.0.25 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/400
- Update plugin detekt to v1.23.7 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/402
- Update dependency mkdocs-macros-plugin to v1.2.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/405
- Update dependency com.android.tools.lint:lint-api to v31.6.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/398
- Update plugin lint to v8.6.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/407
- Update dependency gradle to v8.10.2 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/401
- Update lint.latest to v31.7.0-rc01 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/403
- Update dependency pymdown-extensions to v10.11.1 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/409
- Update dependency mkdocs-material to v9.5.39 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/406
- Don't lint about default modifiers on extensions by @ZacSweers in https://github.com/slackhq/compose-lints/pull/410
- Fix duplicate emissions for multicontent by @ZacSweers in https://github.com/slackhq/compose-lints/pull/411
- Allow test-only previews to be public + better recurse by @ZacSweers in https://github.com/slackhq/compose-lints/pull/412
- Update dependency pymdown-extensions to v10.11.2 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/414
- Update plugin lint to v8.7.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/417
- Update lint.latest to v31.7.0 by @slack-oss-bot in https://github.com/slackhq/compose-lints/pull/415
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