Skip to content

Commit 9eb8473

Browse files
author
Chance Zibolski
committed
Fix rubocop offenses
1 parent 4a09322 commit 9eb8473

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ task build: "docker:test"
1414
task default: :reevoocop
1515

1616
namespace :docker do
17-
distros = [:ubuntu, :"tdagent-ubuntu", :"tdagent-centos"]
17+
distros = %i[ubuntu tdagent-ubuntu tdagent-centos]
1818
task test: distros
1919

2020
distros.each do |distro|

test/plugin/test_in_systemd.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def setup
4343
)
4444
end
4545

46-
attr_reader :journal, :base_config, :pos_path, :pos_config, :head_config, :filter_config, :strip_config, :tail_config, :badmsg_config
46+
attr_reader :journal, :base_config, :pos_path, :pos_config, :head_config,
47+
:filter_config, :strip_config, :tail_config, :badmsg_config
4748

4849
def create_driver(config)
4950
Fluent::Test::InputTestDriver.new(Fluent::SystemdInput).configure(config)
@@ -118,7 +119,6 @@ def test_reading_from_the_journal_tail_with_strip_underscores
118119
d.run
119120
end
120121

121-
122122
def test_pos_file_is_written
123123
d = create_driver(pos_config)
124124
d.run
@@ -146,7 +146,7 @@ def test_reading_from_a_pos
146146
assert_equal 143, d.emits.size
147147
end
148148

149-
def test_reading_from_an_invalid_pos # rubocop:disable Metrics/AbcSize
149+
def test_reading_from_an_invalid_pos
150150
file = File.open(pos_path, "w+")
151151
file.print "thisisinvalid"
152152
file.close

0 commit comments

Comments
 (0)