Skip to content

Releases: slackhq/slack-lints

0.7.4

21 May 21:56
11a0c08
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.7.3...0.7.4

0.7.3

03 May 16:36
Compare
Choose a tag to compare
  • Fix DoNotMockAnything to use setEnabledByDefault(false).

Full Changelog: 0.7.2...0.7.3

0.7.2

02 May 18:20
Compare
Choose a tag to compare
  • 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

New Contributors

Full Changelog: 0.7.1...0.7.2

0.7.1

27 Mar 17:16
Compare
Choose a tag to compare
  • Add MustUseNamedParamsDetector to lint registry.
  • Update lint to 31.5.0-alpha02.
  • Target Kotlin API/language version 1.9.

What's Changed

New Contributors

Full Changelog: 0.7.0...0.7.1

0.7.0

27 Oct 20:28
Compare
Choose a tag to compare
  • 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 ID DenyListedBlockingApi.
  • Support multiple mock report modes for the mock-report option. Modes are NONE, ERRORS, and ALL. Default is NONE. Now the report file is build/reports/mockdetector/mock-report.csv and the second column is the severity. This allows reporting all mocks for extra analysis.

What's Changed

Full Changelog: 0.6.1...0.7.0

0.6.1

09 Oct 19:31
Compare
Choose a tag to compare
  • Enhancement: Add mock-report option to MockDetectors to generate a report of all mocked types in a project.
  • Update to lint 31.3.0-alpha07.

What's Changed

Full Changelog: 0.6.0...0.6.1

0.6.0

26 Sep 20:42
Compare
Choose a tag to compare
  • New: Add ExceptionMessage check that ensures that calls to check, checkNotNull, require, and requireNotNull 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 is org.mockito.Mock,org.mockito.Spy.
    • mock-factories is a comma-separated list of mock factories (i.e. org.mockito.Mockito#methodName). Default is org.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

New Contributors

Full Changelog: 0.5.1...0.6.0

0.5.1

09 Sep 06:24
Compare
Choose a tag to compare
  • Fix: Allow @Provides in companion objects of @Module classes.

Full Changelog: 0.5.0...0.5.1

0.5.0

08 Sep 19:12
Compare
Choose a tag to compare
  • 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

Full Changelog: 0.4.0...0.5.0

0.4.0

20 Jul 19:13
Compare
Choose a tag to compare
  • New: Denylist blocking RxJava 3 operators and coroutines' runBlocking in favor of TestObserver and runTest/Turbine.
  • New: Denylist coroutines' runCatching.
  • New: Denylist java.util.Date, java.text.DateFormat, and java.text.SimpleDateFormat in favor of java.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 API 14).