Releases: slackhq/slack-lints
Releases · slackhq/slack-lints
0.4.0
- New: Denylist blocking RxJava 3 operators and coroutines'
runBlocking
in favor ofTestObserver
andrunTest
/Turbine. - New: Denylist coroutines'
runCatching
. - New: Denylist
java.util.Date
,java.text.DateFormat
, andjava.text.SimpleDateFormat
in favor ofjava.time.*
/kotlin.time.*
/etc APIs. - Enhancement: Specifically report denylisted function name only in lint report, not the whole call expression.
- Enhancement: Update kotlinx-metadata to
0.7.0
to better support Kotlin 2.0. - Update to lint
31.2.0-alpha13
(lint API14
).
0.3.0
- New: Use kotlinx-metadata to parse
Metadata
annotations ofPsiCompiledElement
types to better handle Kotlin language features. Currently used in mock checks and Moshi checks. Please star this issue: https://issuetracker.google.com/issues/283654244. - New: Add DoNotMock check for
object
types. - New: Add DoNotMock check for
sealed
types. Subtypes should be used instead. - New: Add DoNotMock check for
record
types. Same motivation as data classes. - New: Add DoNotMock check for platform types (e.g.
java.*
,kotlin.*
,android.*
, their*x.*
variants). Prefer real implementations or fakes instead.- This is a big change so this one is just a warning for now.
- Enhancement:
MockDetector
revamp. All mock checks now run within the same detector to better utilize metadata catching. - Enhancement: Improve mock check location reporting.
- Enhancement: Improve mock check messages to specify the erroring type.
- Enhancement: Add
reason
properties to@KotlinOnly
/@JavaOnly
annotations. - Enhancement: Add more information to the
Vendor
details. - Raise min lint API to
14
. - Update kotlin to
1.8.21
. Updated language version to this too to match lint. - Update lint to
31.2.0-alpha06
.
0.2.3
0.2.2
- Removed: Compose lints have been removed and published in a separate project: https://github.com/slackhq/compose-lints
0.2.1
0.2.0
- New: Ported most of the Twitter compose-rules checks to lint. We're packaging them in this project right now, but will likely publish them from a separate repo in the future.
- Target lint-api
31.1.0-alpha01
. - Update to Kotlin API version
1.7
. Lint8.1.0-alpha01
or later is now required. - Modernize various build infra (Kotlin
1.8.0
, JDK 19, Gradle 7.6).
What's Changed
- Modernize build by @ZacSweers in #33
- Port (most of) Twitter's Compose Rules to Lint by @ZacSweers in #35
Full Changelog: 0.1.1...0.2.0