Skip to content

Commit 33484a7

Browse files
committed
rubocop: autofix
1 parent ff709bd commit 33484a7

6 files changed

Lines changed: 183 additions & 170 deletions

File tree

.rubocop_todo.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config --no-auto-gen-timestamp`
3-
# using RuboCop version 1.50.2.
3+
# using RuboCop version 1.85.1.
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
77
# versions of RuboCop, may require this file to be generated again.
88

9+
# Offense count: 6
10+
# This cop supports unsafe autocorrection (--autocorrect-all).
11+
RSpec/IncludeExamples:
12+
Exclude:
13+
- 'spec/acceptance/class_spec.rb'
14+
15+
# Offense count: 9
16+
RSpec/LeakyLocalVariable:
17+
Exclude:
18+
- 'spec/acceptance/class_spec.rb'
19+
- 'spec/classes/nodejs_spec.rb'
20+
921
# Offense count: 10
1022
# Configuration parameters: .
1123
# SupportedStyles: have_received, receive

spec/acceptance/class_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
def nodesource_unsupported(nodejs_version)
66
return unless fact('os.family') == 'RedHat'
77
return 'Only NodeJS 16 is supported on EL7' if nodejs_version != '16' && fact('os.release.major') == '7'
8-
return 'NodeJS 16 is not supported on EL9' if nodejs_version == '16' && fact('os.release.major') == '9'
8+
9+
'NodeJS 16 is not supported on EL9' if nodejs_version == '16' && fact('os.release.major') == '9'
910
end
1011

1112
describe 'nodejs' do
@@ -103,7 +104,7 @@ class { 'nodejs':
103104
end
104105
end
105106

106-
context 'RedHat with repo_class => nodejs::repo::dnfmodule', if: fact('os.family') == 'RedHat' && %w[8 9].include?(fact('os.release.major')), skip: (nodejs_version == '16' && fact('os.release.major') == '9' ? 'NodeJS 16 is not available on EL9' : nil) do
107+
context 'RedHat with repo_class => nodejs::repo::dnfmodule', if: fact('os.family') == 'RedHat' && %w[8 9].include?(fact('os.release.major')), skip: ((nodejs_version == '16' && fact('os.release.major') == '9') ? 'NodeJS 16 is not available on EL9' : nil) do
107108
# Node 16 is not available on EL9
108109

109110
include_examples 'cleanup'

0 commit comments

Comments
 (0)