Created
December 13, 2021 06:09
-
-
Save kseki/091ed7c3f2f50f38b8f0d44b857e35d5 to your computer and use it in GitHub Desktop.
Checking for duplicate method names in Rails helpers
This file contains hidden or 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
#!/bin/sh | |
result=`find ./app/helpers -type f | xargs cat | awk '/def /{print $2}' | sed -e "s/(.*//g" | sort | uniq -c -d` | |
# TODO: result handling |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment