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

lib/simplecov.rb:60: warning: instance variable @track_files_glob not initialized #446

Closed
fornellas opened this issue Jan 19, 2016 · 1 comment

Comments

@fornellas
Copy link

Hello,

It seems Simplecov module expect some instance variables to be set up by SimpleCov::Configuration. Of course the default value nil works, however, we get warnings from Ruby VM. I believe this could be solved by improving SimpleCov::Configuration to either preset unset variables to nil, or, check them with Object#instance_variable_defined? before using.

If you think any of these is a good solution (or even suggest a better one), I can make the patch an pull request.

Sincerely,

@xaviershay
Copy link
Collaborator

I like initializing to nil. PR would be fantastic!

craiglittle added a commit to craiglittle/simplecov that referenced this issue Jan 20, 2016
craiglittle added a commit to craiglittle/simplecov that referenced this issue Jan 20, 2016
craiglittle added a commit to craiglittle/simplecov that referenced this issue Jan 20, 2016
craiglittle added a commit to craiglittle/simplecov that referenced this issue Feb 13, 2016
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

No branches or pull requests

2 participants