Skip to content

Commit

Permalink
Merge pull request #281 from bastelfreak/vp
Browse files Browse the repository at this point in the history
update to voxpupuli-rubocop 2.7.0; adjust path to unit files & rubocop: autofix & regen todo file
  • Loading branch information
bastelfreak authored May 17, 2024
2 parents ea24744 + 8bd8c44 commit c0279e4
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 42 deletions.
72 changes: 32 additions & 40 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-06-16 18:17:35 UTC using RuboCop version 1.50.2.
# on 2024-05-17 10:11:09 UTC using RuboCop version 1.63.5.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
Lint/DuplicateBranch:
Exclude:
- 'lib/modulesync/renderer.rb'

# Offense count: 1
# Configuration parameters: AllowComments, AllowNil.
Lint/SuppressedException:
Expand All @@ -28,55 +22,50 @@ Performance/StringInclude:
# This cop supports unsafe autocorrection (--autocorrect-all).
RSpec/BeEq:
Exclude:
- 'spec/unit/modulesync/settings_spec.rb'
- 'spec/unit/module_sync/settings_spec.rb'

# Offense count: 3
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Exclude:
- 'spec/unit/modulesync/git_service/github_spec.rb'
- 'spec/unit/modulesync/git_service/gitlab_spec.rb'
- 'spec/unit/modulesync_spec.rb'
- 'spec/unit/module_sync/git_service/github_spec.rb'
- 'spec/unit/module_sync/git_service/gitlab_spec.rb'
- 'spec/unit/module_sync_spec.rb'

# Offense count: 17
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: SkipBlocks, EnforcedStyle.
# Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
# SupportedStyles: described_class, explicit
RSpec/DescribedClass:
Exclude:
- 'spec/unit/modulesync/git_service/factory_spec.rb'
- 'spec/unit/modulesync/git_service/github_spec.rb'
- 'spec/unit/modulesync/git_service/gitlab_spec.rb'
- 'spec/unit/modulesync/git_service_spec.rb'
- 'spec/unit/modulesync/settings_spec.rb'
- 'spec/unit/modulesync/source_code_spec.rb'
- 'spec/unit/modulesync_spec.rb'
- 'spec/unit/module_sync/git_service/factory_spec.rb'
- 'spec/unit/module_sync/git_service/github_spec.rb'
- 'spec/unit/module_sync/git_service/gitlab_spec.rb'
- 'spec/unit/module_sync/git_service_spec.rb'
- 'spec/unit/module_sync/settings_spec.rb'
- 'spec/unit/module_sync/source_code_spec.rb'
- 'spec/unit/module_sync_spec.rb'

# Offense count: 11
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 16

# Offense count: 7
# Offense count: 2
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
# Include: **/*_spec*rb*, **/spec/**/*
RSpec/FilePath:
Exclude:
- 'spec/unit/modulesync/git_service/factory_spec.rb'
- 'spec/unit/modulesync/git_service/github_spec.rb'
- 'spec/unit/modulesync/git_service/gitlab_spec.rb'
- 'spec/unit/modulesync/git_service_spec.rb'
- 'spec/unit/modulesync/settings_spec.rb'
- 'spec/unit/modulesync/source_code_spec.rb'
- 'spec/unit/modulesync_spec.rb'
- 'spec/unit/module_sync/git_service/github_spec.rb'
- 'spec/unit/module_sync/git_service/gitlab_spec.rb'

# Offense count: 19
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
Exclude:
- 'spec/unit/modulesync/git_service/github_spec.rb'
- 'spec/unit/modulesync/git_service/gitlab_spec.rb'
- 'spec/unit/module_sync/git_service/github_spec.rb'
- 'spec/unit/module_sync/git_service/gitlab_spec.rb'

# Offense count: 7
# Configuration parameters: .
Expand All @@ -93,20 +82,29 @@ RSpec/MultipleExpectations:
# SupportedStyles: always, named_only
RSpec/NamedSubject:
Exclude:
- 'spec/unit/modulesync/settings_spec.rb'
- 'spec/unit/modulesync/source_code_spec.rb'
- 'spec/unit/module_sync/settings_spec.rb'
- 'spec/unit/module_sync/source_code_spec.rb'

# Offense count: 9
# Configuration parameters: AllowedGroups.
RSpec/NestedGroups:
Max: 5

# Offense count: 2
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
# Include: **/*_spec.rb
RSpec/SpecFilePathFormat:
Exclude:
- '**/spec/routing/**/*'
- 'spec/unit/module_sync/git_service/github_spec.rb'
- 'spec/unit/module_sync/git_service/gitlab_spec.rb'

# Offense count: 6
RSpec/StubbedMock:
Exclude:
- 'spec/unit/modulesync/git_service/github_spec.rb'
- 'spec/unit/modulesync/git_service/gitlab_spec.rb'
- 'spec/unit/modulesync_spec.rb'
- 'spec/unit/module_sync/git_service/github_spec.rb'
- 'spec/unit/module_sync/git_service/gitlab_spec.rb'
- 'spec/unit/module_sync_spec.rb'

# Offense count: 9
# Configuration parameters: AllowedConstants.
Expand Down Expand Up @@ -135,12 +133,6 @@ Style/FetchEnvVar:
Style/FrozenStringLiteralComment:
Enabled: false

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/IdenticalConditionalBranches:
Exclude:
- 'lib/modulesync/renderer.rb'

# Offense count: 1
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Expand Down
4 changes: 2 additions & 2 deletions modulesync.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rake'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'simplecov'
spec.add_development_dependency 'voxpupuli-rubocop', '~> 2.0'
spec.add_development_dependency 'voxpupuli-rubocop', '~> 2.7.0'

spec.add_runtime_dependency 'git', '~>1.7'
spec.add_runtime_dependency 'gitlab', '~>4.0'
spec.add_runtime_dependency 'octokit', '>=4', '<9'
spec.add_runtime_dependency 'puppet-blacksmith', '>= 3.0', '< 8'
spec.add_runtime_dependency 'thor'
spec.add_runtime_dependency 'thor', '1.3.0'
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c0279e4

Please sign in to comment.