git_ownership_insights 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67339ef0ad157a4b396b000fba31d443dbc938a24019a7bd98d1a3fe4c4a80c7
|
4
|
+
data.tar.gz: 9ccdb62fe54aefb9c1ee348d831a584a4c83465b5e4cc07fc50be1ba5221b8e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a61138e4efd95f389684f0bbbe79478af6c2e020365d1cbb54aa6bdd5f696e096939a85a66f8c215909dcb20d095ec839ee21573e17bbd1cd1d4c1f4121cb71
|
7
|
+
data.tar.gz: 7e242a2bd0bbbfbe42b7d8732e4ffb85fe92025e3f5a65509a0689dc31ab41baa096886ba8c068636f7b4e743667ca779c275822a1a5f43186a197ed5d4c4be7
|
@@ -62,7 +62,7 @@ module GitOwnershipInsights
|
|
62
62
|
count += 1 if lines_count > size
|
63
63
|
end
|
64
64
|
|
65
|
-
puts "
|
65
|
+
puts " *Total number of code files longer than #{size} lines:* #{count}"
|
66
66
|
end
|
67
67
|
|
68
68
|
def self.count_hotspot_lines(files)
|
@@ -82,7 +82,7 @@ module GitOwnershipInsights
|
|
82
82
|
count += lines_count
|
83
83
|
end
|
84
84
|
|
85
|
-
puts "
|
85
|
+
puts " *Total lines of hotspot code:* #{count}"
|
86
86
|
end
|
87
87
|
|
88
88
|
def self.contribution_message(directory_path:, duration_in_days:, begin_time:, debug: nil, steps: nil)
|
@@ -155,19 +155,19 @@ module GitOwnershipInsights
|
|
155
155
|
filtered_top_touched_files = filtered_files.sort_by { |element, count| [-count.last, element] }
|
156
156
|
|
157
157
|
puts ""
|
158
|
-
puts "Timeframe
|
159
|
-
puts "
|
160
|
-
puts "
|
161
|
-
puts "
|
162
|
-
puts "
|
163
|
-
puts "
|
158
|
+
puts "*Timeframe:* #{(begin_time - duration_in_days).strftime('%Y-%m-%d')} to #{begin_time.strftime('%Y-%m-%d')}"
|
159
|
+
puts " *Hotspot Code Changes:* #{churn_count} (#{hotspot_changes_percentage.round(2)}%)"
|
160
|
+
puts " *Cross-Squad Dependency:*"
|
161
|
+
puts " *Squads depending on each other occurrences:* #{cross_teams_count}"
|
162
|
+
puts " *Squads with single responsibility:* #{single_ownership_teams_count}"
|
163
|
+
puts " *Files exceeding #{BIG_FILE_SIZE} lines with multiple contributors:* #{filtered_top_touched_files.count}"
|
164
164
|
count_hotspot_lines(filtered_files.keys)
|
165
165
|
count_big_files(directory_path)
|
166
|
-
puts "
|
167
|
-
puts "
|
168
|
-
puts "
|
169
|
-
puts "
|
170
|
-
puts "
|
166
|
+
puts " *Code files with a single contributor:* #{(100 - ((files_changed_by_many_teams.to_f / code_files_with_changes.count) * 100)).round(2)}%"
|
167
|
+
puts " *Total amount of code changes:* #{total_changes}"
|
168
|
+
puts " *Total files changed:* #{code_files_with_changes.count}"
|
169
|
+
puts " *Total files in the folder:* #{file_count}"
|
170
|
+
puts " *Contributors:* #{contributors}"
|
171
171
|
|
172
172
|
if HOTSPOT
|
173
173
|
puts "\n"
|