Skip to content

Commit 474f761

Browse files
Merge pull request #383 from puppetlabs/CAT-1688-Upgrade_rubocop
(CAT-1688) Upgrade rubocop to `~> 1.50.0`
2 parents 2206408 + 7aa3290 commit 474f761

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ AllCops:
1818
Style/ClassAndModuleChildren:
1919
Enabled: false
2020

21+
Layout/LineLength:
22+
Max: 200
23+
2124
####################################################
2225
# Cops below here due for deprecation
2326
####################################################

.rubocop_todo.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2023-09-25 08:38:34 UTC using RuboCop version 1.56.3.
3+
# on 2024-01-22 15:21:03 UTC using RuboCop version 1.50.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
@@ -123,7 +123,7 @@ RSpec/DescribeClass:
123123
- 'spec/acceptance/generate_markdown_spec.rb'
124124
- 'spec/acceptance/running_strings_generate_spec.rb'
125125

126-
# Offense count: 51
126+
# Offense count: 48
127127
# Configuration parameters: CountAsOne.
128128
RSpec/ExampleLength:
129129
Max: 66
@@ -159,7 +159,6 @@ Style/ClassVars:
159159
- 'lib/puppet-strings/yard/templates/default/layout/html/setup.rb'
160160

161161
# Offense count: 3
162-
# This cop supports unsafe autocorrection (--autocorrect-all).
163162
Style/CombinableLoops:
164163
Exclude:
165164
- 'lib/puppet-strings/markdown.rb'
@@ -188,10 +187,3 @@ Style/OptionalBooleanParameter:
188187
- 'lib/puppet-strings/yard/code_objects/type.rb'
189188
- 'lib/puppet-strings/yard/handlers/ruby/data_type_handler.rb'
190189
- 'lib/puppet-strings/yard/handlers/ruby/function_handler.rb'
191-
192-
# Offense count: 136
193-
# This cop supports safe autocorrection (--autocorrect).
194-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
195-
# URISchemes: http, https
196-
Layout/LineLength:
197-
Max: 199

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ group :development do
3636
gem 'rspec', '~> 3.1'
3737
gem 'rspec-its', '~> 1.0'
3838

39-
gem 'rubocop', '~> 1.48', require: false
39+
gem 'rubocop', '~> 1.50.0', require: false
4040
gem 'rubocop-performance', '~> 1.16', require: false
4141
gem 'rubocop-rspec', '~> 2.19', require: false
4242

0 commit comments

Comments
 (0)