Skip to content

Instantly share code, notes, and snippets.

@DrewAPicture
Last active December 15, 2015 22:19
Show Gist options
  • Save DrewAPicture/5332683 to your computer and use it in GitHub Desktop.
Save DrewAPicture/5332683 to your computer and use it in GitHub Desktop.
This script returns counts for the ~20 most-used phpdoc @tags used in WordPress core as of 3.6 Beta 1. Uses ack to get the counts.
#!/bin/bash
# Return counts for 20 phpDoc @tags used in WordPress core
# @tags array
tags=( @var @package @subpackage @since @link @deprecated @param @return @access @name @copyright @author @license @version @see @uses @internal @TODO @global @result @option @method )
echo "Total @tags to search: ${#tags[*]}"
for t in "${tags[@]}"
do
ack -Q -h -c "$t "
echo " - $t"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment