Skip to content

Commit 9450779

Browse files
bastelfreakevgeni
authored andcommitted
rubocop: autofix
1 parent 5b3aabf commit 9450779

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

.rubocop_todo.yml

+13-10
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 2022-03-09 21:00:49 UTC using RuboCop version 1.22.3.
3+
# on 2023-08-17 21:27:12 UTC using RuboCop version 1.50.2.
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
@@ -19,26 +19,29 @@ Lint/MissingSuper:
1919
Exclude:
2020
- 'spec/serverspec_type_zabbixapi.rb'
2121

22-
# Offense count: 7
22+
# Offense count: 1
2323
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
24-
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
24+
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
2525
Naming/MethodParameterName:
2626
Exclude:
2727
- 'lib/puppet/provider/zabbix_proxy/ruby.rb'
28-
- 'lib/puppet/type/zabbix_host.rb'
29-
- 'lib/puppet/type/zabbix_template.rb'
3028

31-
# Offense count: 4
29+
# Offense count: 3
30+
# This cop supports unsafe autocorrection (--autocorrect-all).
31+
RSpec/BeEq:
32+
Exclude:
33+
- 'spec/acceptance/zabbix_proxy_spec.rb'
34+
- 'spec/unit/puppet/type/zabbix_template_spec.rb'
35+
36+
# Offense count: 1
37+
# This cop supports unsafe autocorrection (--autocorrect-all).
3238
RSpec/EmptyExampleGroup:
3339
Exclude:
3440
- 'spec/classes/agent_spec.rb'
35-
- 'spec/classes/javagateway_spec.rb'
36-
- 'spec/classes/server_spec.rb'
3741

38-
# Offense count: 4
42+
# Offense count: 2
3943
RSpec/RepeatedExampleGroupDescription:
4044
Exclude:
41-
- 'spec/classes/database_mysql_spec.rb'
4245
- 'spec/defines/startup_spec.rb'
4346

4447
# Offense count: 1

spec/unit/puppet/type/zabbix_template_spec.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@
116116
content
117117
EOS
118118
FileUtils.mkdir_p '/path/to'
119-
File.open(mock_template_source_file, 'w') do |f|
120-
f.write mock_file_content
121-
end
119+
File.write(mock_template_source_file, mock_file_content)
122120
expect(property.source_xml).to eq mock_file_content
123121
end
124122
end

0 commit comments

Comments
 (0)