When I am looking at the PSR2 ruleset.xml as an example, I see a lot of commented blocks saying <!-- checked in Files/SideEffectsSniff -->
Here is a little snippet from: https://github.com/squizlabs/PHP_CodeSniffer/blob/master/CodeSniffer/Standards/PSR2/ruleset.xml
<!-- PHP code MUST use only UTF-8 without BOM. -->
<rule ref="Generic.Files.ByteOrderMark"/>
<!-- 2.3. Side Effects -->
<!-- A file SHOULD declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it SHOULD execute logic with side effects, but SHOULD NOT do both. -->
<!-- checked in Files/SideEffectsSniff -->
The rest of the file does not have a rule similar to Files.SideEffectsSniff
.
My question is, is the side effects checked or not? And if yes, what rule is responsible for it?
Thank you for clarifying.