Releases: slackhq/slack-lints
Releases · slackhq/slack-lints
0.8.2
- Enhancement: Handle
@Multipart
and@Part
annotations in Retrofit lints.
What's Changed
- Update lint to v31.8.0-alpha05 by @slack-oss-bot in #318
- Update plugin lint to v8.8.0-alpha05 by @slack-oss-bot in #319
- Add @Multipart/@part Retrofit lint updates by @ryan-moore-slack in #320
- Update plugin mavenPublish to v0.30.0 by @slack-oss-bot in #323
- Update kotlin to v2.0.21 by @slack-oss-bot in #321
- Update plugin ksp to v2.0.21-1.0.25 by @slack-oss-bot in #322
New Contributors
- @ryan-moore-slack made their first contribution in #320
Full Changelog: 0.8.1...0.8.2
0.8.1
- Open-source
AvoidUsingNotNullOperator
,InflationInItemDecoration
, andDoNotCallViewToString
checks.
What's Changed
- Open-source new checks by @ZacSweers in #317
Full Changelog: 0.8.0...0.8.1
0.8.0
- Enhancement: Tweak explanation for default dispatcher use in rx<->flow interop.
- Enhancement: Switch to stable kotlin-metadata artifact
- Fix: Allow Dagger providers to be called from test sources.
- Build against lint
8.8.0-alpha04
. - Update
api
/minApi
to16
(Lint 8.7.0+). - Build against Kotlin
2.0.20
. - Target Kotlin language version
1.9
in lint-checks (imposed by lint),2.0
in lint-annotations.
What's Changed
- Update lint to v31.6.0-alpha02 by @slack-oss-bot in #275
- Update plugin lint to v8.6.0-alpha02 by @slack-oss-bot in #276
- Update dependency dev.zacsweers.autoservice:auto-service-ksp to v1.2.0 by @slack-oss-bot in #284
- Update dependency gradle to v8.8 by @slack-oss-bot in #281
- Update dependency com.facebook:ktfmt to v0.50 by @slack-oss-bot in #283
- Update lint to v31.6.0-alpha05 by @slack-oss-bot in #279
- Update plugin lint to v8.6.0-alpha05 by @slack-oss-bot in #280
- Update to K2 by @ZacSweers in #175
- Update plugin ksp to v2.0.0-1.0.22 by @slack-oss-bot in #286
- Update lint to v31.6.0-alpha07 by @slack-oss-bot in #288
- Update plugin lint to v8.6.0-alpha07 by @slack-oss-bot in #289
- Update plugin mavenPublish to v0.29.0 by @slack-oss-bot in #290
- Update dependency gradle to v8.10 by @slack-oss-bot in #296
- Update plugin buildConfig to v5.4.0 by @slack-oss-bot in #294
- Update plugin lint to v8.7.0-alpha07 by @slack-oss-bot in #292
- Update gradle/actions action to v4 by @slack-oss-bot in #297
- Update dependency org.jetbrains.kotlin.jvm to v2.0.20 by @slack-oss-bot in #298
- Update dependency com.slack.eithernet:eithernet to v1.9.0 by @slack-oss-bot in #282
- Update dependency com.facebook:ktfmt to v0.52 by @slack-oss-bot in #287
- Update lint to v31.7.0-alpha09 by @slack-oss-bot in #291
- Switch to stable kotlin metadata + update shadow plugin by @ZacSweers in #299
- Update lint to v31.7.0-beta01 by @slack-oss-bot in #301
- Update plugin lint to v8.7.0-rc01 by @slack-oss-bot in #303
- Update dependency gradle to v8.10.2 by @slack-oss-bot in #304
- Update plugin shadow to v8.3.2 by @slack-oss-bot in #306
- Update lint to v31.7.0-rc01 by @slack-oss-bot in #307
- Update plugin buildConfig to v5.5.0 by @slack-oss-bot in #308
- Update plugin ksp to v2.0.20-1.0.25 by @slack-oss-bot in #302
- Update plugin detekt to v1.23.7 by @slack-oss-bot in #305
- Update lint to v31.8.x by @slack-oss-bot in #312
- Update plugin lint to v8.8.x by @slack-oss-bot in #313
- Update plugin shadow to v8.3.3 by @slack-oss-bot in #314
- Update rx-coroutines interop lint message by @serge-slack in #315
- Allow providers to be called in tests by @ZacSweers in #316
New Contributors
- @serge-slack made their first contribution in #315
Full Changelog: 0.7.4...0.8.0
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