src/WooCommerce-Core/Sniffs/Commenting/CommentTagsSniff.php
public function process(File $phpcsFile, $stackPtr)
    {
        $tokens = $phpcsFile->getTokens();

        foreach ($this->getProhibitedTags() as $key => $value) {
            if ($key === $tokens[$stackPtr]['content']) {
                $phpcsFile->addError($this->getErrorMessage($key), $stackPtr, $value);
            }
        }
    }
public function process(File $phpcsFile, $stackPtr)
    {
        $tokens = $phpcsFile->getTokens();

        foreach ($this->getProhibitedTags() as $key => $value) {
            if ($key === $tokens[$stackPtr]['content']) {
                $phpcsFile->addError($this->getErrorMessage($key), $stackPtr, $value);
            }
        }
    }
Processes this test, when one of its tokens is encountered.

@param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
@param int                         $stackPtr  The position of the current token
in the stack passed in $tokens.