Skip to content

Finding files #96

@joshmfrankel

Description

@joshmfrankel
  • 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions