Enable the exportloopref linter

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Benji Rewis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: