Right now, when the checkbox is unchecked it will NOT ignore annotations and when it is checked it will ignore them.
This is due to the fact that PHPCS's runner config option annotations is used to declare if annotations should be taken into account (true by default), while the plugin option is opposite in declaring if they should be ignored (false by default).
Right now, when the checkbox is unchecked it will NOT ignore annotations and when it is checked it will ignore them.
This is due to the fact that PHPCS's runner config option
annotations
is used to declare if annotations should be taken into account (true
by default), while the plugin option is opposite in declaring if they should be ignored (false
by default).The line in question is this one: https://github.com/WPTRT/theme-sniffer/blob/development/src/callback/class-run-sniffer-callback.php#L576. We should simply negate the
$ignore_annotations
variable.Related issue: https://github.com/WPTRT/theme-sniffer/issues/84