Skip to content

Releases: slackhq/slack-lints

0.8.2

14 Oct 17:41
Compare
Choose a tag to compare
  • Enhancement: Handle @Multipart and @Part annotations in Retrofit lints.

What's Changed

New Contributors

Full Changelog: 0.8.1...0.8.2

0.8.1

03 Oct 17:35
Compare
Choose a tag to compare
  • Open-source AvoidUsingNotNullOperator, InflationInItemDecoration, and DoNotCallViewToString checks.

What's Changed

Full Changelog: 0.8.0...0.8.1

0.8.0

02 Oct 20:24
Compare
Choose a tag to compare
  • 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 to 16 (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

New Contributors

Full Changelog: 0.7.4...0.8.0

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