From d161413dcde2b660f90ea88f1413fff699af2d02 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 14 Jul 2023 13:50:49 +0000 Subject: [PATCH 1/2] Update voxpupuli-rubocop requirement from ~> 1.1 to ~> 2.0 Updates the requirements on [voxpupuli-rubocop](https://github.com/voxpupuli/voxpupuli-rubocop) to permit the latest version. - [Changelog](https://github.com/voxpupuli/voxpupuli-rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/voxpupuli/voxpupuli-rubocop/compare/v1.1.0...v2.0.0) --- updated-dependencies: - dependency-name: voxpupuli-rubocop dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index d24cd36..b9ddab0 100644 --- a/Gemfile +++ b/Gemfile @@ -17,5 +17,5 @@ group :development do gem 'rspec', '~> 3.12' gem 'rspec-collection_matchers', '~> 1.2' gem 'rspec-its', '~> 1.3' - gem 'voxpupuli-rubocop', '~> 1.1' + gem 'voxpupuli-rubocop', '~> 2.0' end From 8794ec077259e9857252ef7c415b435a2ef6fbe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Fri, 14 Jul 2023 06:05:05 -1000 Subject: [PATCH 2/2] Auto-correct Rubocop offenses --- lib/puppet-lint/plugins/check_parameter_documentation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet-lint/plugins/check_parameter_documentation.rb b/lib/puppet-lint/plugins/check_parameter_documentation.rb index 4d2f004..2411c94 100644 --- a/lib/puppet-lint/plugins/check_parameter_documentation.rb +++ b/lib/puppet-lint/plugins/check_parameter_documentation.rb @@ -83,7 +83,7 @@ def check private def type_str(idx) - idx[:type] == :CLASS ? 'class' : 'defined type' + (idx[:type] == :CLASS) ? 'class' : 'defined type' end def extract_params(idx)