Skip to content

Instantly share code, notes, and snippets.

@etagwerker
Created October 14, 2020 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save etagwerker/4d28417876b905378050fc216a515d1c to your computer and use it in GitHub Desktop.
Save etagwerker/4d28417876b905378050fc216a515d1c to your computer and use it in GitHub Desktop.
dev.to rails_stats

rails_stats

bundle exec rake stats
+----------------------+-------+-------+---------+---------+-----+-------+
| Name                 | Lines |   LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Uploaders            |    76 |    61 |       5 |      11 |   2 |     3 |
| Sanitizers           |    32 |    27 |       1 |       3 |   3 |     7 |
| Mailers              |   239 |   186 |       4 |      24 |   6 |     5 |
| Decorators           |   392 |   319 |      10 |      48 |   4 |     4 |
| Middlewares          |    15 |    11 |       1 |       2 |   2 |     3 |
| Queries              |    57 |    48 |       2 |       5 |   2 |     7 |
| Models               |  5571 |  4229 |      84 |     516 |   6 |     6 |
| Policies             |   856 |   680 |      27 |     174 |   6 |     1 |
| View Objects         |    77 |    58 |       2 |       8 |   4 |     5 |
| Serializers          |   242 |   217 |      14 |       0 |   0 |     0 |
| Dashboards           |  1357 |   886 |      18 |       6 |   0 |   145 |
| Liquid Tags          |  2590 |  2085 |      47 |     218 |   4 |     7 |
| Libs                 |   811 |   711 |       8 |      41 |   5 |    15 |
| Workers              |  1358 |  1081 |      81 |      87 |   1 |    10 |
| Fields               |    24 |    20 |       2 |       3 |   1 |     4 |
| Black Boxes          |    69 |    59 |       1 |       6 |   6 |     7 |
| Javascripts          | 12661 |  6659 |       0 |     334 |   0 |    17 |
| Errors               |    66 |    52 |      15 |       2 |   0 |    24 |
| Controllers          |  9721 |  7699 |     149 |     784 |   5 |     7 |
| Helpers              |   741 |   611 |       0 |      88 |   0 |     4 |
| Services             |  7722 |  6115 |     144 |     725 |   5 |     6 |
| Labors               |  1607 |  1324 |      21 |     157 |   7 |     6 |
| Libraries            |  1489 |  1240 |      82 |      92 |   1 |    11 |
| Configuration        |  3189 |  1619 |      10 |      16 |   1 |    99 |
| Uploader Tests       |   302 |   237 |       0 |       0 |   0 |     0 |
| Spec Support         |  2312 |  1875 |       7 |      50 |   7 |    35 |
| Other Tests          |  4042 |  3251 |       0 |      26 |   0 |   123 |
| Mailer Tests         |   581 |   464 |       0 |       1 |   0 |   462 |
| Decorator Tests      |   867 |   719 |       0 |       1 |   0 |   717 |
| Query Tests          |    94 |    70 |       0 |       0 |   0 |     0 |
| Model Tests          |  7500 |  6093 |       2 |       8 |   4 |   759 |
| Policy Tests         |   777 |   572 |       0 |       1 |   0 |   570 |
| Request Tests        | 18769 | 15409 |       0 |      36 |   0 |   426 |
| View Object Tests    |    32 |    26 |       0 |       0 |   0 |     0 |
| Dashboard Tests      |   256 |   212 |       0 |       0 |   0 |     0 |
| Serializer Tests     |   102 |    87 |       0 |       0 |   0 |     0 |
| Liquid Tag Tests     |  2382 |  1999 |       0 |      54 |   0 |    35 |
| Lib Tests            |   828 |   679 |       1 |       9 |   9 |    73 |
| Worker Tests         |  2642 |  2115 |       2 |       5 |   2 |   421 |
| Routing Tests        |    80 |    68 |       0 |       0 |   0 |     0 |
| Black Box Tests      |    75 |    66 |       0 |       0 |   0 |     0 |
| Helper Tests         |   644 |   518 |       0 |       1 |   0 |   516 |
| Service Tests        |  9080 |  7495 |       0 |      32 |   0 |   232 |
| Labor Tests          |  1434 |  1209 |       1 |       9 |   9 |   132 |
+----------------------+-------+-------+---------+---------+-----+-------+
| Total                | 103761 | 79161 |     741 |    3583 |   4 |    20 |
+----------------------+-------+-------+---------+---------+-----+-------+
  Code LOC: 35997     Test LOC: 43164     Code to Test Ratio: 1:1.2

Bundler Stats

✗ bundle-stats stats
+--------------------------------|------------|----------------+
|                           Name | Total Deps | 1st Level Deps |
+--------------------------------|------------|----------------+
|               s3_direct_upload | 57         | 4              |
|          rails-settings-cached | 44         | 2              |
|                          rails | 42         | 14             |
|                   administrate | 41         | 10             |
|               devise_invitable | 33         | 2              |
|                       erb_lint | 29         | 7              |
|                pundit-matchers | 29         | 1              |
|                     ahoy_email | 28         | 4              |
|                         blazer | 28         | 4              |
|                    rspec-rails | 28         | 7              |
|                    sassc-rails | 28         | 5              |
|                         devise | 27         | 5              |
|                     field_test | 27         | 4              |
|                    web-console | 25         | 4              |
|                      webpacker | 25         | 4              |
|              factory_bot_rails | 24         | 2              |
|                   dotenv-rails | 24         | 2              |
|                    redis-rails | 24         | 3              |
|                     doorkeeper | 23         | 1              |
|                   jquery-rails | 23         | 3              |
|                    guard-rspec | 21         | 3              |
|                       kaminari | 21         | 4              |
|                        twitter | 20         | 10             |
|               guard-livereload | 19         | 4              |
|                  rubocop-rails | 18         | 3              |
|        carrierwave-bombshelter | 18         | 3              |
|      pusher-push-notifications | 18         | 3              |
|                    carrierwave | 16         | 6              |
|                        storext | 15         | 2              |
|              honeycomb-beeline | 13         | 1              |
|                          guard | 13         | 8              |
|                        fog-aws | 12         | 4              |
|                     ahoy_matey | 11         | 4              |
|                omniauth-github | 10         | 2              |
|              omniauth-facebook | 10         | 1              |
| database_cleaner-active_record | 10         | 2              |
|                  rubocop-rspec | 10         | 1              |
|            rubocop-performance | 10         | 2              |
|                         buffer | 10         | 8              |
|        fix-db-schema-conflicts | 10         | 1              |
|            derailed_benchmarks | 10         | 9              |
|                     cloudinary | 10         | 2              |
|                counter_culture | 10         | 3              |
|          flipper-active_record | 10         | 2              |
|                        ransack | 10         | 4              |
|                       ancestry | 9          | 1              |
|                        rubocop | 9          | 8              |
|              strong_migrations | 9          | 1              |
|                store_attribute | 9          | 1              |
|            acts-as-taggable-on | 9          | 1              |
|                   sidekiq-cron | 9          | 2              |
|               acts_as_follower | 9          | 1              |
|                       capybara | 9          | 7              |
|                    hypershield | 9          | 1              |
|                     inline_svg | 9          | 2              |
|                   validate_url | 9          | 2              |
|            active_record_union | 9          | 1              |
|                email_validator | 8          | 1              |
|                         bullet | 8          | 2              |
|                         pundit | 7          | 1              |
|             jsonapi-serializer | 7          | 1              |
|               shoulda-matchers | 7          | 1              |
|                       jbuilder | 7          | 1              |
|            sidekiq-unique-jobs | 6          | 3              |
|                     webdrivers | 5          | 3              |
|                        octokit | 5          | 2              |
|                       feedjira | 5          | 2              |
|               omniauth-twitter | 5          | 2              |
|                  elasticsearch | 5          | 2              |
|                    twilio-ruby | 5          | 3              |
|                     flipper-ui | 4          | 4              |
|                        webmock | 4          | 3              |
|                     pry-byebug | 4          | 2              |
|               stripe-ruby-mock | 3          | 3              |
|                        sidekiq | 3          | 3              |
|                  better_errors | 3          | 3              |
|                         gibbon | 3          | 2              |
|                       httparty | 3          | 2              |
|                      simplecov | 3          | 3              |
|                         pusher | 3          | 3              |
|                         listen | 3          | 2              |
|                      pry-rails | 3          | 1              |
|                      approvals | 3          | 2              |
|                            pry | 2          | 2              |
|                       omniauth | 2          | 2              |
|                 html_truncator | 2          | 1              |
|                          vault | 2          | 1              |
|                      simpleidn | 2          | 1              |
|               reverse_markdown | 2          | 1              |
|                  bundler-audit | 2          | 2              |
|                      sprockets | 2          | 2              |
|                          faker | 2          | 1              |
|                        launchy | 2          | 1              |
|                    rspec-retry | 2          | 1              |
|          spring-commands-rspec | 1          | 1              |
|                   knapsack_pro | 1          | 1              |
|     yard-activesupport-concern | 1          | 1              |
|              yard-activerecord | 1          | 1              |
|              binding_of_caller | 1          | 1              |
|                    rails_stats | 1          | 1              |
|                       uglifier | 1          | 1              |
|              sitemap_generator | 1          | 1              |
|                      recaptcha | 1          | 1              |
|                      rack-cors | 1          | 1              |
|                    rack-attack | 1          | 1              |
|                           puma | 1          | 1              |
|                       nokogiri | 1          | 1              |
|                     mini_racer | 1          | 1              |
|                          katex | 1          | 1              |
|                        ddtrace | 1          | 1              |
|                            cld | 1          | 1              |
|                       bootsnap | 1          | 1              |
|                    addressable | 1          | 1              |
|             rack-host-redirect | 1          | 1              |
|                           sdoc | 1          | 1              |
|                    honeybadger | 0          | 0              |
|                         gemoji | 0          | 0              |
|            front_matter_parser | 0          | 0              |
|                   rack-timeout | 0          | 0              |
|                      redcarpet | 0          | 0              |
|                          redis | 0          | 0              |
|                        flipper | 0          | 0              |
|                         rolify | 0          | 0              |
|                          rouge | 0          | 0              |
|                         fastly | 0          | 0              |
|                    emoji_regex | 0          | 0              |
|                        rubyzip | 0          | 0              |
|                 slack-notifier | 0          | 0              |
|                       staccato | 0          | 0              |
|                 dogstatsd-ruby | 0          | 0              |
|                         stripe | 0          | 0              |
|                           ulid | 0          | 0              |
|                        timecop | 0          | 0              |
|            wcag_color_contrast | 0          | 0              |
|                       brakeman | 0          | 0              |
|                            vcr | 0          | 0              |
|                memory_profiler | 0          | 0              |
|                           yard | 0          | 0              |
|                  amazing_print | 0          | 0              |
|                        zonebie | 0          | 0              |
|                         spring | 0          | 0              |
|                          exifr | 0          | 0              |
|                      ruby-prof | 0          | 0              |
|                      stackprof | 0          | 0              |
|                      test-prof | 0          | 0              |
|                 nakayoshi_fork | 0          | 0              |
|                       imgproxy | 0          | 0              |
|                         liquid | 0          | 0              |
|                   htmlentities | 0          | 0              |
|                             oj | 0          | 0              |
|                         patron | 0          | 0              |
|                             pg | 0          | 0              |
+--------------------------------|------------|----------------+

      Declared Gems   152
         Total Gems   345
  Unpinned Versions   5
        Github Refs   1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment