Releases: slackhq/slack-lints
Releases · slackhq/slack-lints
0.7.4
What's Changed
- Update plugin lint to v8.5.0-beta01 by @slack-oss-bot in #272
- Update dependency org.jetbrains.kotlin.jvm to v1.9.24 by @slack-oss-bot in #273
- Update lint to v31.5.0-beta01 by @slack-oss-bot in #271
Full Changelog: 0.7.3...0.7.4
0.7.3
- Fix
DoNotMockAnything
to usesetEnabledByDefault(false)
.
Full Changelog: 0.7.2...0.7.3
0.7.2
- Add new
DoNotMockAnything
check. This is disabled by default. This marks any mock as a lint error. This is useful for enforcing a no-mocks policy in your codebase. - Update lint to
31.5.0-alpha07
. - Update to kotlin
1.9.23
. - [docs] Expand Mock option explanation for use with multiple issues.
Special thanks to @utwyko for contributing to this release!
What's Changed
- Update dependency com.squareup.retrofit2:retrofit to v2.11.0 by @slack-oss-bot in #256
- Update lint to v31.5.0-alpha04 by @slack-oss-bot in #258
- Update plugin lint to v8.5.0-alpha04 by @slack-oss-bot in #259
- Update plugin ksp to v1.9.23-1.0.20 by @slack-oss-bot in #260
- Update plugin lint to v8.5.0-alpha06 by @slack-oss-bot in #264
- Update lint to v31.5.0-alpha06 by @slack-oss-bot in #263
- Update gradle/wrapper-validation-action action to v3 by @slack-oss-bot in #265
- Update dependency com.facebook:ktfmt to v0.49 by @slack-oss-bot in #266
- Add AnyMockDetector by @ZacSweers in #270
- Expand Mock option explanation for use with multiple issues. by @utwyko in #257
New Contributors
Full Changelog: 0.7.1...0.7.2
0.7.1
- Add
MustUseNamedParamsDetector
to lint registry. - Update lint to
31.5.0-alpha02
. - Target Kotlin API/language version
1.9
.
What's Changed
- Add LintKotlinVersionCheckTest by @ZacSweers in #160
- Update plugin detekt to v1.23.3 by @slack-oss-bot in #164
- Bump org.jetbrains.kotlin.jvm from 1.9.10 to 1.9.20 by @dependabot in #166
- Bump com.google.devtools.ksp from 1.9.10-1.0.13 to 1.9.20-1.0.13 by @dependabot in #168
- Bump io.gitlab.arturbosch.detekt from 1.23.1 to 1.23.3 by @dependabot in #165
- Update plugin ksp to v1.9.20-1.0.14 by @slack-oss-bot in #167
- Bump com.google.devtools.ksp from 1.9.20-1.0.13 to 1.9.20-1.0.14 by @dependabot in #172
- Update plugin lint to v8.1.4 by @slack-oss-bot in #174
- Update dependency org.jetbrains.kotlin.jvm to v1.9.21 by @slack-oss-bot in #178
- Update plugin detekt to v1.23.4 by @slack-oss-bot in #179
- Update plugin ksp to v1.9.21-1.0.15 by @slack-oss-bot in #183
- Update plugin spotless to v6.23.3 by @slack-oss-bot in #180
- Bump io.gitlab.arturbosch.detekt from 1.23.3 to 1.23.4 by @dependabot in #181
- Update dependency gradle to v8.5 by @slack-oss-bot in #185
- Update actions/setup-java action to v4 by @slack-oss-bot in #186
- Bump org.jetbrains.kotlinx:kotlinx-metadata-jvm from 0.7.0 to 0.8.0 by @dependabot in #190
- Bump com.diffplug.spotless from 6.22.0 to 6.23.3 by @dependabot in #189
- Update dependency com.slack.eithernet:eithernet to v1.8.0 by @slack-oss-bot in #171
- Update lint to v31.3.0-alpha17 by @slack-oss-bot in #191
- Update kotlin language version to match latest in lint + clean up by @ZacSweers in #193
- Bump com.github.gmazzo.buildconfig from 4.2.0 to 5.3.3 by @dependabot in #210
- Bump com.vanniktech.maven.publish from 0.25.3 to 0.27.0 by @dependabot in #209
- Bump org.jetbrains.kotlinx:kotlinx-metadata-jvm from 0.8.0 to 0.9.0 by @dependabot in #211
- Update dependency org.jetbrains.kotlin.jvm to v1.9.22 by @slack-oss-bot in #204
- Update plugin ksp to v1.9.22-1.0.16 by @slack-oss-bot in #196
- Update actions/upload-artifact action to v4 by @slack-oss-bot in #197
- Update plugin lint to v8.2.1 by @slack-oss-bot in #208
- Update lint to v31.3.0-beta02 by @slack-oss-bot in #194
- Bump java version to 21 by @kierse in #215
- Update plugin buildConfig to v5.3.5 by @slack-oss-bot in #198
- Update plugin spotless to v6.25.0 by @slack-oss-bot in #213
- Update plugin ksp to v1.9.22-1.0.17 by @slack-oss-bot in #218
- Update plugin lint to v8.2.2 by @slack-oss-bot in #221
- Update dependency com.facebook:ktfmt to v0.47 by @slack-oss-bot in #216
- Bump com.github.gmazzo.buildconfig from 5.3.3 to 5.3.5 by @dependabot in #212
- Bump com.google.devtools.ksp from 1.9.22-1.0.16 to 1.9.22-1.0.17 by @dependabot in #219
- Bump com.diffplug.spotless from 6.23.3 to 6.25.0 by @dependabot in #220
- Update gradle/wrapper-validation-action action to v2 by @slack-oss-bot in #223
- Update plugin detekt to v1.23.5 by @slack-oss-bot in #225
- Bump io.gitlab.arturbosch.detekt from 1.23.4 to 1.23.5 by @dependabot in #224
- Update dependency gradle to v8.6 by @slack-oss-bot in #226
- Update gradle/gradle-build-action action to v3 by @slack-oss-bot in #222
- Update lint to v31.3.0-rc01 by @slack-oss-bot in #228
- Update to Lint 31.4.0 alphas + improve repo infra by @ZacSweers in #227
- Update plugin lint to v8.4.0-alpha08 by @slack-oss-bot in #230
- Update lint to v31.4.0-alpha08 by @slack-oss-bot in #229
- Update lint to v31.4.0-alpha09 by @slack-oss-bot in #231
- Update plugin lint to v8.4.0-alpha09 by @slack-oss-bot in #232
- Update dependency com.slack.eithernet:eithernet to v1.8.1 by @slack-oss-bot in #233
- Update lint to v31.4.0-alpha10 by @slack-oss-bot in #235
- Update plugin lint to v8.4.0-alpha10 by @slack-oss-bot in #236
- Update lint to v31.4.0-alpha12 by @slack-oss-bot in #237
- Update plugin lint to v8.4.0-alpha12 by @slack-oss-bot in #238
- Update plugin ksp to v1.9.22-1.0.18 by @slack-oss-bot in #240
- Update dependency org.jetbrains.kotlin.jvm to v1.9.23 by @slack-oss-bot in #243
- Update lint to v31.4.0-alpha13 by @slack-oss-bot in #244
- Update plugin ksp to v1.9.23-1.0.19 by @slack-oss-bot in #245
- Update plugin lint to v8.4.0-alpha13 by @slack-oss-bot in #246
- Update plugin dokka to v1.9.20 by @slack-oss-bot in #242
- Add new lint configs + update baseline by @ZacSweers in #247
- Update plugin mavenPublish to v0.28.0 by @slack-oss-bot in #248
- Update dependency com.squareup.retrofit2:retrofit to v2.10.0 by @slack-oss-bot in #249
- Update lint to v31.4.0-beta01 by @slack-oss-bot in #250
- Update plugin lint to v8.4.0-beta01 by @slack-oss-bot in #251
- Update dependency gradle to v8.7 by @slack-oss-bot in #252
- Update plugin detekt to v1.23.6 by @slack-oss-bot in #253
- Add MustUseNamedParamsDetector to lint registry by @ZacSweers in #255
New Contributors
Full Changelog: 0.7.0...0.7.1
0.7.0
- Lower lint API back to
31.3.0-alpha05
as newer versions targeted kotlin 1.9.20 betas without us realizing it. - Improve explanation for sealed class mock detector to mention that Mockito can't mock them at all in Java 17+.
- Promote
PlatformTypeMockDetector
to error severity. - Make
DenyListedApi
entries more configurable. Initial change is that blocking APIs are now reported with the IDDenyListedBlockingApi
. - Support multiple mock report modes for the
mock-report
option. Modes areNONE
,ERRORS
, andALL
. Default isNONE
. Now the report file isbuild/reports/mockdetector/mock-report.csv
and the second column is the severity. This allows reporting all mocks for extra analysis.
What's Changed
- Bump org.jetbrains.dokka from 1.9.0 to 1.9.10 by @dependabot in #153
- Update lint to v31.3.0-alpha09 by @slack-oss-bot in #154
- Add support for mock report modes + CSV format by @ZacSweers in #152
- Add an extra annotation-based check for value classes by @ZacSweers in #151
- Update lint to v31.3.0-alpha11 by @slack-oss-bot in #155
- Make denylisted API entry issues configurable by @ZacSweers in #156
- Promote PlatformTypeMockDetector to error by @ZacSweers in #157
- Improve the sealed class mock detector by @ZacSweers in #159
- Switch to lists everywhere for issues rather than arrays by @ZacSweers in #158
Full Changelog: 0.6.1...0.7.0
0.6.1
- Enhancement: Add
mock-report
option toMockDetector
s to generate a report of all mocked types in a project. - Update to lint
31.3.0-alpha07
.
What's Changed
- Update dependency com.slack.eithernet:eithernet to v1.6.0 by @slack-oss-bot in #144
- Update plugin lint to v8.1.2 by @slack-oss-bot in #146
- Update plugin spotless to v6.22.0 by @slack-oss-bot in #147
- Update lint to v31.3.0-alpha06 by @slack-oss-bot in #145
- Add a complex type assignment check test to DaggerIssuesDetectorTest by @ZacSweers in #142
- Update lint to v31.3.0-alpha07 by @slack-oss-bot in #149
- Update dependency gradle to v8.4 by @slack-oss-bot in #148
- Add mock report option to MockDetector by @ZacSweers in #150
Full Changelog: 0.6.0...0.6.1
0.6.0
- New: Add
ExceptionMessage
check that ensures that calls tocheck
,checkNotNull
,require
, andrequireNotNull
functions always include a message. - Enhancement: Add support for custom mock factories and mock annotations to
MockDetector
.mock-annotations
is a comma-separated list of mock annotations' fully-qualified names. Default isorg.mockito.Mock,org.mockito.Spy
.mock-factories
is a comma-separated list of mock factories (i.e.org.mockito.Mockito#methodName
). Default isorg.mockito.Mockito#mock,org.mockito.Mockito#spy,slack.test.mockito.MockitoHelpers#mock,slack.test.mockito.MockitoHelpersKt#mock
.
- Update lint to
31.3.0-alpha05
.
Special thanks to @SimonMarquis for contributing to this release!
What's Changed
- Update lint to v31.3.0-alpha05 by @slack-oss-bot in #138
- Port ExceptionMessageDetector check from AOSP by @ZacSweers in #143
- Update dependency com.facebook:ktfmt to v0.46 by @slack-oss-bot in #140
- Extract mock annotations/classes/methods into Lint options by @SimonMarquis in #126
New Contributors
- @SimonMarquis made their first contribution in #126
Full Changelog: 0.5.1...0.6.0
0.5.1
- Fix: Allow
@Provides
in companion objects of@Module
classes.
Full Changelog: 0.5.0...0.5.1
0.5.0
- New: Add a bunch more checks around correct usage of Dagger
@Binds
and@Provides
methods. - Fix: Remove
BindsCanBeExtensionFunction
lint as this is prohibited now in Dagger 2.48+. - Update to lint
31.3.0-alpha03
. - Update to Kotlin
1.9.10
.
What's Changed
- Update lint to v31.2.0-alpha15 by @slack-oss-bot in #117
- Update plugin lint to v8.1.0 by @slack-oss-bot in #118
- Update plugin detekt to v1.23.1 by @slack-oss-bot in #119
- Bump io.gitlab.arturbosch.detekt from 1.23.0 to 1.23.1 by @dependabot in #120
- Update dependency com.slack.eithernet:eithernet to v1.5.0 by @slack-oss-bot in #122
- Update lint to v31.2.0-alpha16 by @slack-oss-bot in #124
- Update dependency gradle to v8.3 by @slack-oss-bot in #125
- Update plugin lint to v8.1.1 by @slack-oss-bot in #127
- Update lint to v31.2.0-beta01 by @slack-oss-bot in #129
- Bump com.diffplug.spotless from 6.20.0 to 6.21.0 by @dependabot in #131
- Update plugin dokka to v1.9.0 by @slack-oss-bot in #132
- Bump com.slack.eithernet:eithernet from 1.4.1 to 1.5.0 by @dependabot in #123
- Update plugin ksp to v1.9.10-1.0.13 + other stuff by @slack-oss-bot in #115
- Update actions/checkout action to v4 by @slack-oss-bot in #134
- Update lint to v31.3.0-alpha02 by @slack-oss-bot in #135
- Revamp DaggerIssuesDetector by @ZacSweers in #133
- Update lint to v31.3.0-alpha03 by @slack-oss-bot in #136
Full Changelog: 0.4.0...0.5.0
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
).