2.15.0
Release notes - SonarKotlin - 2.15
Bug
SONARKT-306 Exception in the rule S2175: CollectionInappropriateCalls when used with typed arrays
SONARKT-313 Potential StackOverflow in VoidShouldBeUnitCheck (S6508) due to recursive star projection
False-Positive
SONARKT-251 Fix FP in rule S1186 when @Suppress("DEPRECATION") is used
SONARKT-314 S6517: common FP when an interface has a parent
New Feature
SONARKT-119 Rule S6207: Redundant functions should be avoided in data classes
SONARKT-282 Implement rule S6530: Type casts should make sense
SONARKT-288 Implement rule S6531: Type casts and checks shouldn't be redundant
SONARKT-292 Implement rule S6515: Singleton pattern should use object declarations or expressions
SONARKT-294 Implement rule S6558: "It" shouldn't be used as a lambda parameter name
SONARKT-295 Implement rule S6615: Variables assigned values should be read
SONARKT-296 Implement rule S6532: "check" or "require" should be used for preconditions
SONARKT-297 Implement rule S6529: "isEmpty", "isNotEmpty" should be used to check the size
SONARKT-298 Implement rule S6611: `Map` values should be accessed safely
Improvement
SONARKT-279 Plugin MANIFEST should declare the JRE version requirement
SONARKT-312 Allow issue messages code highlighting
SONARKT-315 Update rules metadata
SONARKT-316 Update external linters