Skip to content

Commit fcfafbc

Browse files
committed
Require Ruby 3.2+ & puppet-lint 5.1+
1 parent 27efd4d commit fcfafbc

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

.rubocop_todo.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
# This configuration was generated by
2-
# `rubocop --auto-gen-config`
3-
# on 2023-04-21 12:16:47 UTC using RuboCop version 1.50.2.
2+
# `rubocop --auto-gen-config --no-auto-gen-timestamp`
3+
# using RuboCop version 1.79.2.
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: Severity, Include.
11+
# Include: **/*.gemspec
12+
Gemspec/RequiredRubyVersion:
13+
Exclude:
14+
- 'puppet-lint-topscope-variable-check.gemspec'
15+
916
# Offense count: 1
1017
# Configuration parameters: IgnoredMetadata.
1118
RSpec/DescribeClass:
@@ -17,21 +24,20 @@ RSpec/DescribeClass:
1724
- '**/spec/views/**/*'
1825
- 'spec/puppet-lint/plugins/topscope_variable_spec.rb'
1926

20-
# Offense count: 5
27+
# Offense count: 3
2128
# This cop supports unsafe autocorrection (--autocorrect-all).
2229
# Configuration parameters: EnforcedStyle.
2330
# SupportedStyles: always, always_true, never
2431
Style/FrozenStringLiteralComment:
2532
Exclude:
26-
- 'Gemfile'
27-
- 'Rakefile'
33+
- '**/*.arb'
2834
- 'lib/puppet-lint/plugins/topscope_variable.rb'
2935
- 'puppet-lint-topscope-variable-check.gemspec'
3036
- 'spec/puppet-lint/plugins/topscope_variable_spec.rb'
3137

3238
# Offense count: 1
3339
# This cop supports safe autocorrection (--autocorrect).
34-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
40+
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
3541
# URISchemes: http, https
3642
Layout/LineLength:
3743
Max: 142

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ group :development do
1313
gem 'rake', '~> 13.0', '>= 13.0.6'
1414
gem 'rspec', '~> 3.12'
1515
gem 'rspec-collection_matchers', '~> 1.2'
16-
gem 'rspec-its', '~> 1.3'
17-
gem 'voxpupuli-rubocop', '~> 2.0'
16+
gem 'rspec-its', '>= 1.3'
17+
gem 'voxpupuli-rubocop', '~> 4.2.0'
1818
end

puppet-lint-topscope-variable-check.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
1616
A puppet-lint plugin to check that topscope variable names don't start with ::.
1717
DESC
1818

19-
spec.required_ruby_version = '>= 2.7.0'
19+
spec.required_ruby_version = '>= 3.2'
2020

21-
spec.add_dependency 'puppet-lint', '>= 3', '< 5'
21+
spec.add_dependency 'puppet-lint', '~> 5.1'
2222
end

0 commit comments

Comments
 (0)