Skip to content

Commit 4ba21fc

Browse files
committed
rubocop: fix Naming/VariableNumber
1 parent b599f3d commit 4ba21fc

3 files changed

Lines changed: 5 additions & 14 deletions

File tree

.rubocop_todo.yml

Lines changed: 1 addition & 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 2026-02-07 06:14:27 UTC using RuboCop version 1.81.7.
3+
# on 2026-02-07 06:19:45 UTC using RuboCop version 1.81.7.
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
@@ -59,15 +59,6 @@ Naming/PredicatePrefix:
5959
- 'spec/**/*'
6060
- 'lib/puppet_references.rb'
6161

62-
# Offense count: 2
63-
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
64-
# SupportedStyles: snake_case, normalcase, non_integer
65-
# AllowedIdentifiers: TLS1_1, TLS1_2, capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
66-
Naming/VariableNumber:
67-
Exclude:
68-
- 'lib/puppet_references.rb'
69-
- 'lib/puppet_references/version_tables/data/agent.rb'
70-
7162
# Offense count: 11
7263
# This cop supports safe autocorrection (--autocorrect).
7364
Rake/Desc:

lib/puppet_references.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ def self.build_facter_references(commit)
5454
]
5555
# Adding this workaround so the build doesn't fail for 3.y. Check with Claire to see if
5656
# we need the CLI docs for 3.y. We can remove this when we stop building 3.y.
57-
version_4 = Gem::Version.create('4.0.0')
57+
version4 = Gem::Version.create('4.0.0')
5858
repo = PuppetReferences::Repo.new('facter', FACTER_DIR)
5959
real_commit = repo.checkout(commit)
60-
if !is_semantic?(commit) || (is_semantic?(commit) && Gem::Version.create(commit) >= version_4)
60+
if !is_semantic?(commit) || (is_semantic?(commit) && Gem::Version.create(commit) >= version4)
6161
references << PuppetReferences::Facter::FacterCli
62-
elsif is_semantic?(commit) && Gem::Version.create(commit) < version_4
62+
elsif is_semantic?(commit) && Gem::Version.create(commit) < version4
6363
reference = PuppetReferences::Facter::FacterCli.new(real_commit)
6464
reference.build_v3_cli
6565
end

lib/puppet_references/version_tables/data/agent.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def data
7272
end
7373

7474
# Before Vanagon 0.7, we have to actually just grep the component files. Boo.
75-
def get_components_hash_pre_vanagon_0_7
75+
def get_components_hash_pre_vanagon_0_7 # rubocop:disable Naming/VariableNumber
7676
@component_files.each_with_object({}) do |(component, config), result|
7777
component_file = PuppetReferences::AGENT_DIR + 'configs/components' + config
7878
if component_file.extname == '.json'

0 commit comments

Comments
 (0)