From 66fae34755585eaf4e72828f1ae76a78acb3eb36 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Sun, 20 Oct 2024 16:24:45 +0200 Subject: [PATCH] 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 = {})