-
Measure interest rates. Ruby code that changed most frequently in the last year.
git log --format=format: --name-only --after="2017-05-18" -- "*.rb" | egrep -v '^$' | sort | uniq -c | sort -r | head -10
-
Measure size of each file. Lines of code is a simple proxy for complexity. Just Ruby files
cloc . --by-file --csv --include-lang=Ruby --quiet
-
Combine the two into a single output of filename, change_frequency, size.
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
module ArrayHelper | |
# Returns a new Array which is the result | |
# flattening any nested arrays. | |
# | |
# @param [Array] the array to flatten | |
# @param [Array] the array to append results to. | |
# | |
# @return [Array] the flattened array. | |
# |
OlderNewer