Closed tomjn closed 6 years ago
This might be even useful further upstream.
There is already a PR (by me) open for a sniff to do just this in PHPCS upstream: https://github.com/squizlabs/PHP_CodeSniffer/pull/1724
FYI: The upstream PR has been merged. Also see #1500.
There's a pending PR by @david-binda for the VIP standards at https://github.com/Automattic/VIP-Coding-Standards/pull/126 that tries to detect conflict resolution text in files, e.g.
It might be worth merging into WPCS rather than VIPCS given its platform agnostic nature.
If the PR is good as is I can adjust the namespaces etc and create a PR to put the sniff in the
WordPress
ruleset, perhaps underWhiteSpace
?