Last active
December 15, 2015 12:58
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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