git_ownership_insights 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e323781f21d5b045b9fe23e6790f53739fe6bd99e917a9ad2b88c544a9aa3428
4
- data.tar.gz: 0c23bd13ad86a4edc00f38a77e5219d18ebd81af84dc8e76764762611780fb1e
3
+ metadata.gz: dd5244ef2598407471bd2b55728b3c86cd48dfce9d4e6e2956b8b0ba2b0cf7ef
4
+ data.tar.gz: 9e21ea07a0455fa4792687ee4b0180c8d3dfee0889801f4846ccec8dec04f33c
5
5
  SHA512:
6
- metadata.gz: 7302774074f86ca8f5ebd3288f47150a7cc9adf642b2dfe3bc60f0f0ff087a38f9645789b256e923fc578b5d445293be72dcc143d07906a86c6a678e8742a1c4
7
- data.tar.gz: 97f58091878d741eac46b1c0a0eb8263cbe7cc7abdba5f8db2c70bf2d12fe4dc0f089496a8e8b7b87531c9bfa4bdb4577820b75afa50576eec9e30184bbdd723
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 07:43:06 UTC using RuboCop version 1.60.0.
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: 187
19
+ Max: 181
13
20
 
14
- # Offense count: 1
21
+ # Offense count: 4
15
22
  # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
16
23
  # AllowedMethods: refine
17
24
  Metrics/BlockLength:
18
- Max: 69
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: 31
35
+ Max: 28
24
36
 
25
37
  # Offense count: 4
26
38
  # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
27
39
  Metrics/MethodLength:
28
- Max: 115
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: 32
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: 7
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: 150
65
+ Max: 229
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git_ownership_insights (2.0.0)
4
+ git_ownership_insights (2.0.2)
5
5
  date
6
6
  pry
7
7
 
@@ -73,7 +73,7 @@ class GitOwnershipInsights
73
73
  count += 1 if lines_count > size
74
74
  end
75
75
 
76
- puts " *Current(*) total number of code files longer than #{size} lines:* #{count}"
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(*) total of #{CODE_EXTENSIONS} files in the folder:* #{file_count}"
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|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class GitOwnershipInsights
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.2'
5
5
  end
@@ -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(*) total number of code files longer than 250 lines:* 2
56
- *Current(*) total of [".swift", ".kt"] files in the folder:* 4
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_ownership_insights
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serghei Moret