Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rubocop: Enable Naming/VariableNumber #1877

Merged
merged 1 commit into from
May 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ Naming/MethodParameterName:
Naming/PredicateName:
Enabled: false

Naming/VariableNumber:
Enabled: false

RSpec/DescribeClass:
Exclude:
- acceptance/fixtures/module/spec/**/*.rb
Expand All @@ -49,3 +46,6 @@ RSpec/NestedGroups:

Style:
Enabled: false

Naming/VariableNumber:
AllowedPatterns: ['x86_64']
12 changes: 6 additions & 6 deletions acceptance/fixtures/module/spec/acceptance/demo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
end

it "is able to apply manifests" do
manifest_1 = "user {'foo':
manifest1 = "user {'foo':
ensure => present,}"
manifest_2 = "user {'foo':
manifest2 = "user {'foo':
ensure => absent,}"
manifest_3 = "user {'root':
manifest3 = "user {'root':
ensure => present,}"
apply_manifest(manifest_1, :expect_changes => true)
apply_manifest(manifest_2, :expect_changes => true)
apply_manifest(manifest_3)
apply_manifest(manifest1, :expect_changes => true)
apply_manifest(manifest2, :expect_changes => true)
apply_manifest(manifest3)
end

describe service('sshd') do
Expand Down