Skip to content

Commit 8bd8c44

Browse files
committed
update to voxpupuli-rubocop 2.7.0; adjust path to unit files
rubocop demands the path changes.
1 parent 7fe82ae commit 8bd8c44

File tree

9 files changed

+33
-41
lines changed

9 files changed

+33
-41
lines changed

.rubocop_todo.yml

Lines changed: 32 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2023-06-16 18:17:35 UTC using RuboCop version 1.50.2.
3+
# on 2024-05-17 10:11:09 UTC using RuboCop version 1.63.5.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 1
10-
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
11-
Lint/DuplicateBranch:
12-
Exclude:
13-
- 'lib/modulesync/renderer.rb'
14-
159
# Offense count: 1
1610
# Configuration parameters: AllowComments, AllowNil.
1711
Lint/SuppressedException:
@@ -28,55 +22,50 @@ Performance/StringInclude:
2822
# This cop supports unsafe autocorrection (--autocorrect-all).
2923
RSpec/BeEq:
3024
Exclude:
31-
- 'spec/unit/modulesync/settings_spec.rb'
25+
- 'spec/unit/module_sync/settings_spec.rb'
3226

3327
# Offense count: 3
3428
# Configuration parameters: Prefixes, AllowedPatterns.
3529
# Prefixes: when, with, without
3630
RSpec/ContextWording:
3731
Exclude:
38-
- 'spec/unit/modulesync/git_service/github_spec.rb'
39-
- 'spec/unit/modulesync/git_service/gitlab_spec.rb'
40-
- 'spec/unit/modulesync_spec.rb'
32+
- 'spec/unit/module_sync/git_service/github_spec.rb'
33+
- 'spec/unit/module_sync/git_service/gitlab_spec.rb'
34+
- 'spec/unit/module_sync_spec.rb'
4135

4236
# Offense count: 17
4337
# This cop supports unsafe autocorrection (--autocorrect-all).
44-
# Configuration parameters: SkipBlocks, EnforcedStyle.
38+
# Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
4539
# SupportedStyles: described_class, explicit
4640
RSpec/DescribedClass:
4741
Exclude:
48-
- 'spec/unit/modulesync/git_service/factory_spec.rb'
49-
- 'spec/unit/modulesync/git_service/github_spec.rb'
50-
- 'spec/unit/modulesync/git_service/gitlab_spec.rb'
51-
- 'spec/unit/modulesync/git_service_spec.rb'
52-
- 'spec/unit/modulesync/settings_spec.rb'
53-
- 'spec/unit/modulesync/source_code_spec.rb'
54-
- 'spec/unit/modulesync_spec.rb'
42+
- 'spec/unit/module_sync/git_service/factory_spec.rb'
43+
- 'spec/unit/module_sync/git_service/github_spec.rb'
44+
- 'spec/unit/module_sync/git_service/gitlab_spec.rb'
45+
- 'spec/unit/module_sync/git_service_spec.rb'
46+
- 'spec/unit/module_sync/settings_spec.rb'
47+
- 'spec/unit/module_sync/source_code_spec.rb'
48+
- 'spec/unit/module_sync_spec.rb'
5549

5650
# Offense count: 11
5751
# Configuration parameters: CountAsOne.
5852
RSpec/ExampleLength:
5953
Max: 16
6054

61-
# Offense count: 7
55+
# Offense count: 2
6256
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
6357
# Include: **/*_spec*rb*, **/spec/**/*
6458
RSpec/FilePath:
6559
Exclude:
66-
- 'spec/unit/modulesync/git_service/factory_spec.rb'
67-
- 'spec/unit/modulesync/git_service/github_spec.rb'
68-
- 'spec/unit/modulesync/git_service/gitlab_spec.rb'
69-
- 'spec/unit/modulesync/git_service_spec.rb'
70-
- 'spec/unit/modulesync/settings_spec.rb'
71-
- 'spec/unit/modulesync/source_code_spec.rb'
72-
- 'spec/unit/modulesync_spec.rb'
60+
- 'spec/unit/module_sync/git_service/github_spec.rb'
61+
- 'spec/unit/module_sync/git_service/gitlab_spec.rb'
7362

7463
# Offense count: 19
7564
# Configuration parameters: AssignmentOnly.
7665
RSpec/InstanceVariable:
7766
Exclude:
78-
- 'spec/unit/modulesync/git_service/github_spec.rb'
79-
- 'spec/unit/modulesync/git_service/gitlab_spec.rb'
67+
- 'spec/unit/module_sync/git_service/github_spec.rb'
68+
- 'spec/unit/module_sync/git_service/gitlab_spec.rb'
8069

8170
# Offense count: 7
8271
# Configuration parameters: .
@@ -93,20 +82,29 @@ RSpec/MultipleExpectations:
9382
# SupportedStyles: always, named_only
9483
RSpec/NamedSubject:
9584
Exclude:
96-
- 'spec/unit/modulesync/settings_spec.rb'
97-
- 'spec/unit/modulesync/source_code_spec.rb'
85+
- 'spec/unit/module_sync/settings_spec.rb'
86+
- 'spec/unit/module_sync/source_code_spec.rb'
9887

9988
# Offense count: 9
10089
# Configuration parameters: AllowedGroups.
10190
RSpec/NestedGroups:
10291
Max: 5
10392

93+
# Offense count: 2
94+
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
95+
# Include: **/*_spec.rb
96+
RSpec/SpecFilePathFormat:
97+
Exclude:
98+
- '**/spec/routing/**/*'
99+
- 'spec/unit/module_sync/git_service/github_spec.rb'
100+
- 'spec/unit/module_sync/git_service/gitlab_spec.rb'
101+
104102
# Offense count: 6
105103
RSpec/StubbedMock:
106104
Exclude:
107-
- 'spec/unit/modulesync/git_service/github_spec.rb'
108-
- 'spec/unit/modulesync/git_service/gitlab_spec.rb'
109-
- 'spec/unit/modulesync_spec.rb'
105+
- 'spec/unit/module_sync/git_service/github_spec.rb'
106+
- 'spec/unit/module_sync/git_service/gitlab_spec.rb'
107+
- 'spec/unit/module_sync_spec.rb'
110108

111109
# Offense count: 9
112110
# Configuration parameters: AllowedConstants.
@@ -135,12 +133,6 @@ Style/FetchEnvVar:
135133
Style/FrozenStringLiteralComment:
136134
Enabled: false
137135

138-
# Offense count: 2
139-
# This cop supports unsafe autocorrection (--autocorrect-all).
140-
Style/IdenticalConditionalBranches:
141-
Exclude:
142-
- 'lib/modulesync/renderer.rb'
143-
144136
# Offense count: 1
145137
# Configuration parameters: AllowedMethods.
146138
# AllowedMethods: respond_to_missing?

modulesync.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
2121
spec.add_development_dependency 'rake'
2222
spec.add_development_dependency 'rspec'
2323
spec.add_development_dependency 'simplecov'
24-
spec.add_development_dependency 'voxpupuli-rubocop', '~> 2.0'
24+
spec.add_development_dependency 'voxpupuli-rubocop', '~> 2.7.0'
2525

2626
spec.add_runtime_dependency 'git', '~>1.7'
2727
spec.add_runtime_dependency 'gitlab', '~>4.0'
File renamed without changes.

0 commit comments

Comments
 (0)