git_ownership_insights 2.0.1 → 2.0.2
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: dd5244ef2598407471bd2b55728b3c86cd48dfce9d4e6e2956b8b0ba2b0cf7ef
|
4
|
+
data.tar.gz: 9e21ea07a0455fa4792687ee4b0180c8d3dfee0889801f4846ccec8dec04f33c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e07e63cba3b86fdedb333cf5063f559ac36d545fd04482f5339e3f939b4e207d8d99cbeb59e75832132c9501d74b73f251c5de343f76258ef1cbeadc8b06a2f5
|
7
|
+
data.tar.gz: 9abb98a4c09c8ad308b8fdd2bd591bbd8a291da716090047b26836c9d801780949fde3389348b17739ecd5fe436726bb6efcaab271bf67edf014def7b0c2b992
|
data/Gemfile.lock
CHANGED
@@ -73,7 +73,7 @@ class GitOwnershipInsights
|
|
73
73
|
count += 1 if lines_count > size
|
74
74
|
end
|
75
75
|
|
76
|
-
puts " *Current(
|
76
|
+
puts " *Current(\\*) total number of code files longer than #{size} lines:* #{count}"
|
77
77
|
end
|
78
78
|
|
79
79
|
def count_hotspot_lines(files)
|
@@ -198,13 +198,13 @@ class GitOwnershipInsights
|
|
198
198
|
puts " *Total amount of commits to #{CODE_EXTENSIONS} files:* #{total_changes}"
|
199
199
|
puts " *Total #{CODE_EXTENSIONS} files changed:* #{uniq_code_files_with_changes.count}"
|
200
200
|
count_big_files(@directory_path)
|
201
|
-
puts " *Current(
|
201
|
+
puts " *Current(\\*) total of #{CODE_EXTENSIONS} files in the folder:* #{file_count}"
|
202
202
|
puts " *Contributors:* #{contributors}"
|
203
203
|
puts "* means that it the current(instant) repository value, all the other metrics are done over #{duration_in_days} days period"
|
204
204
|
|
205
205
|
if HOTSPOT
|
206
206
|
puts "\n"
|
207
|
-
puts ' Hotspot changes
|
207
|
+
puts ' *Hotspot changes:*'
|
208
208
|
filtered_top_touched_files.each do |line|
|
209
209
|
puts " #{line.first.gsub(@directory_path, '')} Contributors: #{line.last.first} Commits: #{line.last.last}"
|
210
210
|
end
|
@@ -212,7 +212,7 @@ class GitOwnershipInsights
|
|
212
212
|
|
213
213
|
if CODEOWNERS
|
214
214
|
puts "\n"
|
215
|
-
puts 'Code ownership data
|
215
|
+
puts '*Code ownership data:*'
|
216
216
|
codeowners = read_codeowners_file
|
217
217
|
|
218
218
|
owners_data = Hash.new do |hash, key|
|
@@ -52,8 +52,8 @@ RSpec.describe GitOwnershipInsights do
|
|
52
52
|
*[".swift", ".kt"] files exceeding 250 lines with multiple contributors:* 1
|
53
53
|
*Total amount of commits to [".swift", ".kt"] files:* 7
|
54
54
|
*Total [".swift", ".kt"] files changed:* 3
|
55
|
-
*Current(
|
56
|
-
*Current(
|
55
|
+
*Current(\\*) total number of code files longer than 250 lines:* 2
|
56
|
+
*Current(\\*) total of [".swift", ".kt"] files in the folder:* 4
|
57
57
|
*Contributors:* {"FIOS"=>5, "FAND"=>2}
|
58
58
|
* means that it the current(instant) repository value, all the other metrics are done over 7 days period
|
59
59
|
|