From 8c352d4eb3ca381715ad8805240ed644b96eda0f Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Sun, 20 Oct 2024 16:21:53 +0200 Subject: [PATCH 1/2] voxpupuli-rubocop: Fix version pinning, update 2.6->2.8 --- hiera-eyaml.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hiera-eyaml.gemspec b/hiera-eyaml.gemspec index 95eb4c4..87a6bd4 100644 --- a/hiera-eyaml.gemspec +++ b/hiera-eyaml.gemspec @@ -21,7 +21,7 @@ Gem::Specification.new do |gem| gem.add_development_dependency 'rake', '~> 13.2', '>= 13.2.1' gem.add_development_dependency 'rspec-expectations', '~> 3.13' - gem.add_development_dependency 'voxpupuli-rubocop', '2.6.0' + gem.add_development_dependency 'voxpupuli-rubocop', '~> 2.8.0' gem.required_ruby_version = '>= 2.7', ' < 4' end From 66fae34755585eaf4e72828f1ae76a78acb3eb36 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Sun, 20 Oct 2024 16:24:45 +0200 Subject: [PATCH 2/2] rubocop: autofix --- .rubocop_todo.yml | 16 ++++++++-------- lib/hiera/backend/eyaml/parser/token.rb | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 0fbcd7f..a353392 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2024-05-02 19:12:37 UTC using RuboCop version 1.62.1. +# on 2024-10-20 14:24:21 UTC using RuboCop version 1.64.1. # 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 @@ -94,6 +94,7 @@ Naming/ClassAndModuleCamelCase: # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS Naming/FileName: Exclude: + - 'Rakefile.rb' - 'lib/hiera/backend/eyaml/CLI.rb' # Offense count: 3 @@ -127,13 +128,6 @@ Naming/VariableNumber: Exclude: - 'lib/hiera/backend/eyaml/utils.rb' -# Offense count: 3 -# This cop supports unsafe autocorrection (--autocorrect-all). -Performance/Casecmp: - Exclude: - - 'lib/hiera/backend/eyaml/highlinehelper.rb' - - 'lib/hiera/backend/eyaml/utils.rb' - # Offense count: 1 # This cop supports unsafe autocorrection (--autocorrect-all). Performance/Detect: @@ -270,6 +264,12 @@ Style/IfWithBooleanLiteralBranches: - 'lib/hiera/backend/eyaml/highlinehelper.rb' - 'lib/hiera/backend/eyaml_backend.rb' +# Offense count: 1 +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/MapIntoArray: + Exclude: + - 'lib/hiera/backend/eyaml_backend.rb' + # Offense count: 1 Style/MultilineBlockChain: Exclude: diff --git a/lib/hiera/backend/eyaml/parser/token.rb b/lib/hiera/backend/eyaml/parser/token.rb index 600cfe6..997c6dc 100644 --- a/lib/hiera/backend/eyaml/parser/token.rb +++ b/lib/hiera/backend/eyaml/parser/token.rb @@ -37,7 +37,7 @@ def to_s class NonMatchToken < Token def initialize(non_match) - super(non_match) + super end def to_encrypted(_args = {})