Skip to content

Releases: slackhq/slack-lints

0.11.1

13 Oct 18:52

Choose a tag to compare

  • Fix: Allow sealed classes to be Moshi-compatible.
  • Fix: Allow primitives in collections to be Moshi-compatible.
  • Fix: Allow sealed interfaces to be Moshi-compatible.
  • Fix: Allow enums to be Moshi-compatible.

What's Changed

Full Changelog: 0.11.0...0.11.1

0.11.0

17 Jul 23:45

Choose a tag to compare

  • New: Add CircuitScreenDataClassDetector check to ensure that Circuit Screen classes are data classes or data objects.
  • Fix: Enable the JsonInflaterMoshiCompatibilityDetector in slack-lint's lint registry.
  • Fix: Actually fix "You must override visitCallExpression (and don't call super.visitCallExpression!)" error.
  • Change: Disable AlwaysNullReadOnlyVariableDetector for now as this was causing the issue above it seems and we haven't had a change to investigate further.
  • Build against lint 31.12.0-alpha09.

What's Changed

  • Circuit: Ensure screens are data class / objects by @gham1 in #409
  • Remove AlwaysNullReadOnlyVariableDetector from SlackIssueRegistry by @ywu96 in #410
  • Register JsonInflaterMoshiCompatibilityDetector with SlackIssueRegistry by @ywu96 in #411
  • Update lint to v31.12.0-alpha09 by @slack-oss-bot in #406

New Contributors

Full Changelog: 0.10.1...0.11.0

0.10.1

14 Jul 20:36

Choose a tag to compare

  • Fix "You must override visitCallExpression (and don't call super.visitCallExpression!)" error.

What's Changed

Full Changelog: 0.10.0...0.10.1

0.10.0

30 Jun 18:20

Choose a tag to compare

  • New: Add JsonInflaterMoshiCompatibilityDetector check. This lint is only usable to slack's internal repo.
  • New: Add RxObservableEmitDetector to ensure that rxObservable/rxFlowable lambda expressions call send/trySend.
  • New: Add AlwaysNullReadOnlyVariableDetector to lint against read-only variables always initialized to null.
  • Allow suspend Retrofit functions to return Unit if annotated with @AllowUnitResult.
  • Update lint to 31.12.0-alpha07.
  • Only test against K2 UAST now.
  • Test against Retrofit 3.0.0.

Special thanks to @henni99 for contributing to this release!

What's Changed

New Contributors

Full Changelog: 0.9.0...0.10.0

0.9.0

28 Mar 00:55

Choose a tag to compare

  • New: Add TestParameterSiteTarget check to protect against google/TestParameterInjector#49.
  • New: Add NullableConcurrentHashMap check to protect against putting null keys or values into ConcurrentHashMaps.
  • Add mockito-kotlin mock/spy functions to default DoNotMock checks.
  • Add java.util.Calendar to DenyListedApiDetector.
  • Don't require ExceptionMessage lint in tests.
  • Update EitherNet checks to EitherNet 2.0.
  • Raise lint registry API version to 16 (8.7.0-alpha04).
  • Build against Kotlin 2.1.20.
  • Build against lint 31.10.0-alpha03.

Special thanks to @mformetal and @jbduncan for contributing to this release!

What's Changed

New Contributors

Full Changelog: 0.8.2...0.9.0

0.8.2

14 Oct 17:41

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

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

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

Choose a tag to compare

What's Changed

Full Changelog: 0.7.3...0.7.4

0.7.3

03 May 16:36

Choose a tag to compare

  • Fix DoNotMockAnything to use setEnabledByDefault(false).

Full Changelog: 0.7.2...0.7.3