Skip to content

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

Closed

Description

@fornellas

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,

Activity

  1. xaviershay commented on Jan 20, 2016

    @xaviershay
    Collaborator

    I like initializing to nil. PR would be fantastic!

  2. added 3 commits that reference this issue on Jan 20, 2016
    cc751a7
    ae3507b
    8c1730d
  3. added a commit that references this issue on Feb 13, 2016
    b6d4c3b
  4. added theissue type on May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions