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

Suppress warnings step 2 #890

Merged
merged 8 commits into from
Apr 19, 2016
Merged

Conversation

okkez
Copy link
Contributor

@okkez okkez commented Apr 11, 2016

No description provided.

lib/fluent/config/configure_proxy.rb:256: warning: assigned but unused variable - opts
lib/fluent/plugin/in_tail.rb:692: warning: assigned but unused variable - pos
lib/fluent/plugin/in_tail.rb:693: warning: assigned but unused variable - ino
lib/fluent/plugin/out_exec_filter.rb:117: warning: assigned but unused variable - localtime
lib/fluent/plugin/out_exec_filter.rb:119: warning: assigned but unused variable - utc
lib/fluent/plugin/out_exec_filter.rb:356: warning: assigned but unused variable - pid
* Remove unused variables

test/plugin_helper/test_child_process.rb:95: warning: assigned but unused variable - t1
test/plugin_helper/test_child_process.rb:128: warning: assigned but unused variable - t1
test/plugin_helper/test_child_process.rb:165: warning: assigned but unused variable - t1
test/plugin_helper/test_child_process.rb:200: warning: assigned but unused variable - t1
test/plugin_helper/test_child_process.rb:236: warning: assigned but unused variable - t1
test/plugin_helper/test_child_process.rb:351: warning: assigned but unused variable - ary
test/plugin_helper/test_child_process.rb:391: warning: assigned but unused variable - data
test/plugin_helper/test_child_process.rb:379: warning: assigned but unused variable - ary
test/plugin_helper/test_child_process.rb:445: warning: assigned but unused variable - encodings
test/plugin_helper/test_child_process.rb:467: warning: assigned but unused variable - encodings
test/plugin_helper/test_child_process.rb:489: warning: assigned but unused variable - encodings

* Add '_' prefix to block variable

test/plugin_helper/test_child_process.rb:512: warning: shadowing outer local variable - io
test/plugin_helper/test_child_process.rb:529: warning: shadowing outer local variable - io
test/plugin/test_out_file.rb:252: warning: File.exists? is a deprecated name, use File.exist? instead
test/plugin/test_out_file.rb:257: warning: File.exists? is a deprecated name, use File.exist? instead
* Use File.exist? instead of File.exist?

test/plugin/test_buf_file.rb:90: warning: File.exists? is a deprecated name, use File.exist? instead
test/plugin/test_buf_file.rb:103: warning: File.exists? is a deprecated name, use File.exist? instead
test/plugin/test_buf_file.rb:42: warning: File.exists? is a deprecated name, use File.exist? instead
test/plugin/test_buf_file.rb:212: warning: File.exists? is a deprecated name, use File.exist? instead
test/plugin/test_buf_file.rb:213: warning: File.exists? is a deprecated name, use File.exist? instead
test/plugin/test_buf_file.rb:217: warning: File.exists? is a deprecated name, use File.exist? instead
test/plugin/test_buf_file.rb:218: warning: File.exists? is a deprecated name, use File.exist? instead
test/plugin/test_buf_file.rb:409: warning: File.exists? is a deprecated name, use File.exist? instead
test/plugin/test_buf_file.rb:416: warning: File.exists? is a deprecated name, use File.exist? instead
test/plugin/test_buf_file.rb:417: warning: File.exists? is a deprecated name, use File.exist? instead
test/plugin/test_buf_file.rb:381: warning: File.exists? is a deprecated name, use File.exist? instead
test/plugin/test_buf_file.rb:387: warning: File.exists? is a deprecated name, use File.exist? instead
test/plugin/test_buf_file.rb:388: warning: File.exists? is a deprecated name, use File.exist? instead
test/plugin/test_buf_file.rb:347: warning: File.exists? is a deprecated name, use File.exist? instead

* Use Dir.exist? instead of Dir.exists?

test/plugin/test_buf_file.rb:334: warning: Dir.exists? is a deprecated name, use Dir.exist? instead
test/plugin/test_buf_file.rb:336: warning: Dir.exists? is a deprecated name, use Dir.exist? instead
lib/fluent/plugin_helper/timer.rb:39: warning: instance variable @_timer_running not initialized
lib/fluent/plugin_helper/timer.rb:39: warning: instance variable @_timer_running not initialized
lib/fluent/plugin/in_tail.rb:175: warning: instance variable @pf not initialized
lib/fluent/plugin/in_tail.rb:122: warning: instance variable @pf_file not initialized
@okkez
Copy link
Contributor Author

okkez commented Apr 11, 2016

See also #848

@tagomoris
Copy link
Member

LGTM

@tagomoris tagomoris merged commit 9f651fa into fluent:master Apr 19, 2016
@okkez okkez deleted the suppress-warnings-step2 branch April 19, 2016 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants