Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2642

Enable the exportloopref linter

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.12.0, 1.12.0-alpha1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed

      In parallelizing the test suite, I've found it's very easy to make the mistake of not capturing the for-loop variable when using t.Parallel(). This a really common issue for Go developers and will probably be changed in the language. Until then, we should use a linter like exportloopref to check for this error.

            Assignee:
            benji.rewis@mongodb.com Benji Rewis (Inactive)
            Reporter:
            benji.rewis@mongodb.com Benji Rewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: