File tree 2 files changed +0
-18
lines changed
main/kotlin/com/lemonappdev/konsist/api/architecture
test/kotlin/com/lemonappdev/konsist/api/architecture
2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -87,14 +87,6 @@ data class Layer(
87
87
)
88
88
}
89
89
90
- // Check for consecutive dots in middle (excluding the start and end ..)
91
- if (effectivePackage.contains(" .." )) {
92
- throw IllegalArgumentException (
93
- " Invalid package definition for layer '$name '. " +
94
- " Package can only end with '..'. Current definition: $rootPackage " ,
95
- )
96
- }
97
-
98
90
// Split and validate segments
99
91
val segments =
100
92
effectivePackage
Original file line number Diff line number Diff line change @@ -90,16 +90,6 @@ class LayerTest {
90
90
" com.example\$ #.."
91
91
}
92
92
93
- @Test
94
- fun `create Layer with consecutive dots in middle should throw exception` () {
95
- // when
96
- val func = { Layer (name = " name" , rootPackage = " com..example.." ) }
97
-
98
- // then
99
- func shouldThrow IllegalArgumentException ::class withMessage
100
- " Invalid package definition for layer 'name'. Package can only end with '..'. Current definition: com..example.."
101
- }
102
-
103
93
@Test
104
94
fun `create Layer with package starting with two dots should not throw exception` () {
105
95
// when
You can’t perform that action at this time.
0 commit comments