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

Enable the exportloopref linter

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.12.0, 1.12.0-alpha1
    • None
    • None
    • None
    • Not Needed

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: