Skip to content

Releases: jzbrooks/assertk-lint

v1.5.1

05 Sep 13:31
5631a30

Choose a tag to compare

Fixed

  • Detectors avoid signaling failures in production code
  • Quick fixes for TestFrameworkAssertionDetector relocate message assertion parameters to comments in a more robust manner

v1.5.0

16 Feb 17:01
ba9ffd5

Choose a tag to compare

Added

  • KotlinAssertionDetector prohibits use of kotlin.assert in tests
  • Quick fixes for null check and equality tests for UnusedAssertkAssertion
  • Quick fixes for common junit 4 assertions detected by TestFrameworkAssertionDetector
  • Quick fixes for common kotlin.test assertions cases detected by TestFrameworkAssertionDetector

Fixed

  • Fully qualified function call handling is improved across several detectors

v1.4.0

23 Dec 13:45

Choose a tag to compare

Added

  • EqualityComparisonAssertion prohibits equality expression in assertThat
  • CollectionSizeAssertion prohibits Collection.size reads in assertThat

Fixed

  • UnusedAssertkAssertion flags used assertion subjects in lambda expressions

v1.3.0

22 Oct 00:30
df258e8

Choose a tag to compare

Added

  • NullComparisonAssertion requires using assertk's isNotNull and isNull assertions for null assertions
  • UseIndexAssertion requires using assertk's indexing assertions (index, first, etc) to make assertions on a particular array or list value

v1.2.1

05 Jul 19:36

Choose a tag to compare

Fixed

  • MapValueAssertion no longer raises issues on array indexing expressions as an assertThat argument

v1.2.0

27 Jun 00:30

Choose a tag to compare

Added

  • MapValueAssertion requires using assertk's key function to make assertions on a particular map value
  • KeySetAbsentAssertion requires using assertk's doesNotContainKey function to assert a key is absent in a map
  • KeySetPresentAssertion requires using assertk's key function to assert a key is present in a map
  • TryCatchAssertion requires using assertk's assertFailure function to handle expected exceptions

v1.1.1

03 Jan 01:35
af10a5b

Choose a tag to compare

Fixed

  • Updated detector scope to avoid requiring checkTestSources
  • kotlin.test assertions were not detected by TestFrameworkAssertionDetector

v1.1.0

26 Nov 16:27
041f9c8

Choose a tag to compare

Added

  • UnusedAssertkAssertion detects unused assertion subjects

v1.0.1

19 Nov 00:46

Choose a tag to compare

Fixed

  • Jar metadata pointed to an incorrect lint issue registry class

1.0.0

18 Nov 21:34

Choose a tag to compare

Added

  • Warnings for test framework assertions
  • Warnings for Google Truth assertions (opt-in)
  • Warnings for AssertJ assertions (opt-in)