Skip to content

Instantly share code, notes, and snippets.

@arjenvanderende
Last active December 15, 2015 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arjenvanderende/5263479 to your computer and use it in GitHub Desktop.
Save arjenvanderende/5263479 to your computer and use it in GitHub Desktop.
For Play! Framework, finds all public static method that should have a route defined in routes/conf.
egrep "public static" `git ls-files | egrep "controller" | egrep -v "test"` | sed 's/[a-z/]*\/\([A-Za-z]*\).java:[ ]*public static [a-zA-Z<>, ]* \([_a-zA-Z]*\).*/\1.\2/' | egrep -v "//" | awk 'NR==FNR{a[$NF];next}!($0 in a)' conf/routes -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment