From 4adc8c4eccca79567a4a43af7344652c2f62a081 Mon Sep 17 00:00:00 2001 From: Brad Anderson Date: Thu, 28 May 2026 22:30:35 -0400 Subject: [PATCH] test: cover multi-role @Secured in kotlin rule tests --- rules/kotlin/spring-secured.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rules/kotlin/spring-secured.toml b/rules/kotlin/spring-secured.toml index 362ae98..39d3d4b 100644 --- a/rules/kotlin/spring-secured.toml +++ b/rules/kotlin/spring-secured.toml @@ -61,6 +61,15 @@ class UserController { """ expect_match = true +[[rule.tests]] +input = """ +class UserController { + @Secured("ROLE_ADMIN", "ROLE_SUPERUSER") + fun deleteUser(id: Long) { } +} +""" +expect_match = true + [[rule.tests]] input = """ class UserController {