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

fix: avoid emitting warnings when ruby is run with -w #1

Conversation

flavorjones
Copy link
Contributor

I've also turned on warnings for this gem's tests, to make it more obvious when this is happening in the future.

Without this fix, users will see repeated messages like this:

source_file_formatter.rb:20: warning: instance variable @line_coverage not initialized

I've also turned on warnings for this gem's tests, to make it more
obvious when this is happening in the future.

Without this fix, users will see repeated messages like this:

> source_file_formatter.rb:20: warning: instance variable @line_coverage not initialized
@sriedel
Copy link

sriedel commented Apr 20, 2021

Just encountered this issue as well. @fede-moya since the issue is annoying and the fix is trivial, could you please merge the PR and publish a new gem version?

@flavorjones
Copy link
Contributor Author

@noahd1 hate to bother you, but any chance you could merge this?

@fede-moya fede-moya merged commit 2300b17 into codeclimate-community:master May 2, 2021
@fede-moya
Copy link
Collaborator

@flavorjones @sriedel

My apologies folks, will be more proactive next time. Version 0.1.3 has been released.

@flavorjones flavorjones deleted the flavorjones-avoid-warning-messages branch May 3, 2021 01:38
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.

None yet

3 participants