You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3ecd32b
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: use the shared case-insensitive BOOLEAN in network-route-addr validators
Drop NETWORK_ROUTE_ADDR_BOOLEAN_ANY_CASE now that BOOLEAN matches parse_boolean()'s
STRCASE_IN_SET. IPv6SendRA=/IPv6PrefixDelegation= use the explicit
PreferValidAlternativeCombinator(names, BOOLEAN) form, with case-sensitive names as
string_table_lookup_from_string uses streq. IPProtocol= keeps ignoreCase (gperf
--ignore-case plus an ascii_strlower retry) and moves to PreferValidAlternativeCombinator
so the lenient name regex cannot shadow a number on the classic engine.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: src/main/kotlin/net/sjrx/intellij/plugins/systemdunitfiles/semanticdata/optionvalues/ai/ConfigParseRouterPrefixDelegationOptionValue.kt
Copy file name to clipboardExpand all lines: src/main/kotlin/net/sjrx/intellij/plugins/systemdunitfiles/semanticdata/optionvalues/ai/ConfigParseRoutingPolicyRuleIpProtocolOptionValue.kt
Copy file name to clipboardExpand all lines: src/main/kotlin/net/sjrx/intellij/plugins/systemdunitfiles/semanticdata/optionvalues/grammar/BatchNetworkRouteAddrCombinators.kt
-6Lines changed: 0 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -429,12 +429,6 @@ fun ipIsMulticast(bytes: ByteArray): Boolean =
429
429
if (bytes.size ==4) (bytes[0].toInt() and0xF0) ==0xE0else (bytes[0].toInt() and0xFF) ==0xFF
Copy file name to clipboardExpand all lines: src/test/kotlin/net/sjrx/intellij/plugins/systemdunitfiles/inspections/ai/ConfigParseRouterPrefixDelegationOptionValueTest.kt
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,16 @@ class ConfigParseRouterPrefixDelegationOptionValueTest : AbstractUnitFileTest()
16
16
IPv6SendRA=no
17
17
IPv6SendRA=True
18
18
IPv6SendRA=0
19
+
IPv6SendRA=Yes
20
+
IPv6SendRA=TRUE
21
+
IPv6SendRA=oFf
19
22
IPv6PrefixDelegation=static
20
23
IPv6PrefixDelegation=dhcpv6
21
24
IPv6PrefixDelegation=yes
25
+
IPv6PrefixDelegation=Yes
26
+
IPv6PrefixDelegation=TRUE
27
+
IPv6PrefixDelegation=oFf
28
+
IPv6PrefixDelegation=No
22
29
""".trimIndent()
23
30
24
31
setupFileInEditor("file.network", file)
@@ -36,10 +43,13 @@ class ConfigParseRouterPrefixDelegationOptionValueTest : AbstractUnitFileTest()
Copy file name to clipboardExpand all lines: src/test/kotlin/net/sjrx/intellij/plugins/systemdunitfiles/inspections/ai/ConfigParseRoutingPolicyRuleIpProtocolOptionValueTest.kt
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,9 @@ class ConfigParseRoutingPolicyRuleIpProtocolOptionValueTest : AbstractUnitFileTe
25
25
IPProtocol=144
26
26
IPProtocol=0
27
27
IPProtocol=58
28
+
IPProtocol=TcP
29
+
IPProtocol=IcMpV6
30
+
IPProtocol=L2TP
28
31
""".trimIndent()
29
32
30
33
setupFileInEditor("file.network", file)
@@ -44,10 +47,12 @@ class ConfigParseRoutingPolicyRuleIpProtocolOptionValueTest : AbstractUnitFileTe
0 commit comments