git_ownership_insights 2.0.0 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +21 -14
- data/Gemfile.lock +1 -1
- data/lib/git_ownership_insights/git_ownership_insight.rb +4 -4
- data/lib/git_ownership_insights/version.rb +1 -1
- data/spec/git_ownership_insights_spec.rb +2 -2
- metadata +1 -1
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/.rubocop_todo.yml
CHANGED
@@ -1,41 +1,48 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2024-01-30
|
3
|
+
# on 2024-01-30 15:39:52 UTC using RuboCop version 1.60.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
+
# Offense count: 12
|
10
|
+
# Configuration parameters: AllowedMethods.
|
11
|
+
# AllowedMethods: enums
|
12
|
+
Lint/ConstantDefinitionInBlock:
|
13
|
+
Exclude:
|
14
|
+
- 'spec/git_ownership_insights_spec.rb'
|
15
|
+
|
9
16
|
# Offense count: 4
|
10
17
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
11
18
|
Metrics/AbcSize:
|
12
|
-
Max:
|
19
|
+
Max: 181
|
13
20
|
|
14
|
-
# Offense count:
|
21
|
+
# Offense count: 4
|
15
22
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
16
23
|
# AllowedMethods: refine
|
17
24
|
Metrics/BlockLength:
|
18
|
-
Max:
|
25
|
+
Max: 76
|
26
|
+
|
27
|
+
# Offense count: 1
|
28
|
+
# Configuration parameters: CountComments, CountAsOne.
|
29
|
+
Metrics/ClassLength:
|
30
|
+
Max: 200
|
19
31
|
|
20
32
|
# Offense count: 1
|
21
33
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
22
34
|
Metrics/CyclomaticComplexity:
|
23
|
-
Max:
|
35
|
+
Max: 28
|
24
36
|
|
25
37
|
# Offense count: 4
|
26
38
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
27
39
|
Metrics/MethodLength:
|
28
|
-
Max:
|
29
|
-
|
30
|
-
# Offense count: 1
|
31
|
-
# Configuration parameters: CountComments, CountAsOne.
|
32
|
-
Metrics/ModuleLength:
|
33
|
-
Max: 192
|
40
|
+
Max: 109
|
34
41
|
|
35
42
|
# Offense count: 1
|
36
43
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
37
44
|
Metrics/PerceivedComplexity:
|
38
|
-
Max:
|
45
|
+
Max: 29
|
39
46
|
|
40
47
|
# Offense count: 1
|
41
48
|
# Configuration parameters: AllowedConstants.
|
@@ -50,9 +57,9 @@ Style/MultilineBlockChain:
|
|
50
57
|
Exclude:
|
51
58
|
- 'lib/git_ownership_insights/git_ownership_insight.rb'
|
52
59
|
|
53
|
-
# Offense count:
|
60
|
+
# Offense count: 11
|
54
61
|
# This cop supports safe autocorrection (--autocorrect).
|
55
62
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
56
63
|
# URISchemes: http, https
|
57
64
|
Layout/LineLength:
|
58
|
-
Max:
|
65
|
+
Max: 229
|
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
|
|