Changeset 60768 for trunk/phpcs.xml.dist
- Timestamp:
- 09/16/2025 12:35:01 PM (8 months ago)
- File:
-
- 1 edited
-
trunk/phpcs.xml.dist (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpcs.xml.dist
r58925 r60768 256 256 </rule> 257 257 258 <!-- Exclude forbidding goto in the HTML Processor, which mimics algorithms that are written259 this way in the HTML specification, and these particular algorithms are complex and260 highly imperative. Avoiding the goto introduces a number of risks that could make it261 more difficult to maintain the relationship to the standard, lead to subtle differences262 in the parsing, and distance the code from its standard. -->263 258 <rule ref="Generic.PHP.DiscourageGoto.Found"> 259 <!-- Exclude forbidding goto in the HTML Processor, which mimics algorithms that are written 260 this way in the HTML specification, and these particular algorithms are complex and 261 highly imperative. Avoiding the goto introduces a number of risks that could make it 262 more difficult to maintain the relationship to the standard, lead to subtle differences 263 in the parsing, and distance the code from its standard. --> 264 264 <exclude-pattern>/wp-includes/html-api/class-wp-html-processor\.php</exclude-pattern> 265 265 <exclude-pattern>/wp-includes/html-api/class-wp-html-doctype-info\.php</exclude-pattern> 266 267 <!-- Goto is an effective way to handle errors in decoders which expect valid bytes 268 without impacting the fast path while avoiding bloating the code with redundant 269 and risky handling code. Exclude forbidding goto in UTF-8 fallback code. --> 270 <exclude-pattern>/wp-includes/compat-utf8\.php</exclude-pattern> 266 271 </rule> 267 272
Note: See TracChangeset
for help on using the changeset viewer.