WordPress/PHPCSHelper.php
public static function ignore_annotations( File $phpcsFile = null ) {
		if ( isset( $phpcsFile, $phpcsFile->config->annotations ) ) {
			return ! $phpcsFile->config->annotations;
		} else {
			$annotations = Config::getConfigData( 'annotations' );
			if ( isset( $annotations ) ) {
				return ! $annotations;
			}
		}
	}
public static function ignore_annotations( File $phpcsFile = null ) {
		if ( isset( $phpcsFile, $phpcsFile->config->annotations ) ) {
			return ! $phpcsFile->config->annotations;
		} else {
			$annotations = Config::getConfigData( 'annotations' );
			if ( isset( $annotations ) ) {
				return ! $annotations;
			}
		}
	}
Check whether the `--ignore-annotations` option has been used.

@since 0.13.0

@param \PHP_CodeSniffer\Files\File $phpcsFile Optional. The current file being processed.

@return bool True if annotations should be ignored, false otherwise.