Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add methods for calculating M/C and LOC/M #19

Merged
merged 1 commit into from
Oct 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions test/dummy/app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
class ApplicationController < ActionController::Base
include Pagy::Backend

def hello
p hello
end
end
8 changes: 4 additions & 4 deletions test/lib/rails_stats/code_statistics_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
+----------------------+---------+---------+---------+---------+-----+-------+
| Channels | 8 | 8 | 2 | 0 | 0 | 0 |
| Configuration | 417 | 111 | 1 | 0 | 0 | 0 |
| Controllers | 3 | 3 | 1 | 0 | 0 | 0 |
| Controllers | 7 | 6 | 1 | 1 | 1 | 4 |
| Helpers | 3 | 3 | 0 | 0 | 0 | 0 |
| Javascripts | 27 | 7 | 0 | 0 | 0 | 0 |
| Jobs | 7 | 2 | 1 | 0 | 0 | 0 |
| Mailers | 4 | 4 | 1 | 0 | 0 | 0 |
| Models | 3 | 3 | 1 | 0 | 0 | 0 |
+----------------------+---------+---------+---------+---------+-----+-------+
| Code | 472 | 141 | 7 | 0 | 0 | 0 |
| Code | 476 | 144 | 7 | 1 | 0 | 142 |
| Tests | 0 | 0 | 0 | 0 | 0 | 0 |
| Total | 472 | 141 | 7 | 0 | 0 | 0 |
| Total | 476 | 144 | 7 | 1 | 0 | 142 |
+----------------------+---------+---------+---------+---------+-----+-------+
Code LOC: 141 Test LOC: 0 Code to Test Ratio: 1:0.0
Code LOC: 144 Test LOC: 0 Code to Test Ratio: 1:0.0

EOS

Expand Down