Skip to content

Changelog

Changelog

Unreleased

Added

  • AssertThatEqualsDetector detects Any.equals calls on assertion subjects which will never fail tests

Changed

Deprecated

Removed

Fixed

Security

1.5.1 - 2025-09-05

Fixed

  • Detectors avoid signaling failures in production code
  • Quick fixes for TestFrameworkAssertionDetector relocate message

1.5.0 - 2025-02-16

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

1.4.0 - 2024-12-23

Added

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

Fixed

  • UnusedAssertkAssertion flags used assertion subjects in lambda expressions

1.3.0 - 2024-10-22

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

1.2.1 - 2024-07-05

Fixed

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

1.2.0 - 2024-06-27

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

1.1.1 - 2024-01-02

Fixed

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

1.1.0 - 2023-11-26

Added

  • UnusedAssertkAssertion detects unused assertion subjects

1.0.1 - 2023-11-18

Fixed

  • Jar metadata pointed to an incorrect lint issue registry class

1.0.0 - 2023-11-18

Added

  • TestFrameworkAssertionUse detects junit4, junit5, and kotlin.test assertions
  • GoogleTruthUse detects Google Truth assertions (opt-in)
  • AssertJUse detects AssertJ assertions (opt-in)