-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
-
Find in Git
git grep xxxx -
Find in Pry
ls --grep=xxxx -
Tally callsites for classes
1. Gather all file with the Component.new in them
grep -E '([\w:]+Component).new' -r ./app > output.txt
2. Cut results
[all-components-by-usage.txt]
components_raw = File.readlines("all-components-by-usage.txt")
components_raw.tally
tallied_results.sort_by { |_, value| -value }.to_h
3. Raw ordered json results
[total-component-usage-ordered.json]
Metadata
Metadata
Assignees
Labels
No labels