1. 13 Mar, 2019 1 commit
  2. 01 Mar, 2019 1 commit
    • Dmitri Shuralyov's avatar
      Revert "all: add a go.mod file" · 5614ed5b
      Dmitri Shuralyov authored
      This reverts commit 5b3e6a55.
      
      Adding a go.mod file has started to cause go get -u golang.org/x/lint
      to fail in module mode. This is issue golang/lint#436. Remove the
      go.mod file for now in order to resolve the issue. We will re-add
      the go.mod file to this repository again when it's a better time
      to do so.
      
      Change-Id: I9d63410de03ddca617ddb5ef86effba9f6bd3577
      Reviewed-on: https://go-review.googlesource.com/c/164641
      Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
      Reviewed-by: 's avatarHeschi Kreinick <heschi@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      5614ed5b
  3. 27 Feb, 2019 1 commit
  4. 17 Dec, 2018 1 commit
  5. 12 Dec, 2018 1 commit
  6. 26 Oct, 2018 1 commit
  7. 23 Oct, 2018 2 commits
  8. 11 Oct, 2018 2 commits
  9. 02 Jul, 2018 1 commit
  10. 28 Apr, 2018 1 commit
  11. 24 Apr, 2018 1 commit
  12. 19 Mar, 2018 1 commit
  13. 16 Mar, 2018 1 commit
  14. 07 Mar, 2018 2 commits
    • Leonel Quinteros's avatar
      lint: allow multiple error return values · 83796723
      Leonel Quinteros authored
      When returning multiple values with an error,
      lint checks if the error is the last return value.
      But the implementation actually is checking for all return values
      except for the last one, and throw the alert if it found an error.
      
      There is a (edge) case where some function returning more than one error
      is getting a false positive even when the last return value is an error.
      
      This patch adds an early check, to see if the last return value is an error
      and if so, it will pass silently.
      
      Fixes golang/lint#286
      
      Change-Id: Ib3ad50ed127cdab6ac63e9d89c1c97f4a641f972
      GitHub-Last-Rev: 9dd9de4fce5fccc846d010cc1c57720e33da85aa
      GitHub-Pull-Request: golang/lint#387
      Reviewed-on: https://go-review.googlesource.com/99295Reviewed-by: 's avatarAndrew Bonventre <andybons@golang.org>
      83796723
    • Leonel Quinteros's avatar
      lint: avoid false positives with custom errors-package · c72d1a52
      Leonel Quinteros authored
      When using `errors.New(fmt.Sprintf(...))`,
      lint will alert that you should use `fmt.Errorf(...)`.
      
      Before this patch, this alert was also displayed
      when using a custom errors-package.
      There are valid use cases to use `errors.New(fmt.Sprintf(...))`
      in a custom errors-package context.
      
      This patch avoids the "false positive" alert
      when a custom errors-package is imported in the current file.
      
      Fixes golang/lint#350
      
      Change-Id: I7cc82a3435b184f8b4cad0752a75d44f33536dce
      GitHub-Last-Rev: ad257d26802aca316d6b83758fcb143083934587
      GitHub-Pull-Request: golang/lint#360
      Reviewed-on: https://go-review.googlesource.com/96091Reviewed-by: 's avatarAndrew Bonventre <andybons@golang.org>
      c72d1a52
  15. 01 Mar, 2018 1 commit
  16. 28 Feb, 2018 1 commit
  17. 27 Feb, 2018 1 commit
  18. 24 Feb, 2018 1 commit
    • Joël Stemmer's avatar
      Add check for MixedCaps in package name · 3ea3fa98
      Joël Stemmer authored
      Lint already checks for underscores in package names, but did not yet
      check for lower case names. The section on Package names in the
      Effective Go document states that "By convention, packages packages are
      given lower case, single-word names; there should be no need for
      underscores or mixedCaps."
      
      GitHub-Last-Rev: 91b0fc6545806c03760f2ceef4d148271965bbc9
      GitHub-Pull-Request: golang/lint#285
      Change-Id: Ibb234166360b67f0f561b463a951a87399cad1d3
      Reviewed-on: https://go-review.googlesource.com/96080Reviewed-by: 's avatarAndrew Bonventre <andybons@golang.org>
      3ea3fa98
  19. 22 Feb, 2018 1 commit
  20. 21 Feb, 2018 5 commits
  21. 05 Jan, 2018 1 commit
  22. 12 Dec, 2017 2 commits
  23. 05 Oct, 2017 1 commit
  24. 18 Sep, 2017 1 commit
  25. 02 Jun, 2017 1 commit
    • Dimitri Sokolyuk's avatar
      Fix lint on packages with all generated files · c5fb716d
      Dimitri Sokolyuk authored
      A package with all generated files will reduce to a set with no
      source files, which causes lint to panic on a nil-pointer dereference.
      Move the conditional check for an empty package until after we
      have checked the package for generated files.
      
      Fixes #300
      c5fb716d
  26. 25 May, 2017 1 commit
  27. 28 Feb, 2017 1 commit
  28. 26 Feb, 2017 1 commit
  29. 13 Feb, 2017 1 commit
    • Bryan Mills's avatar
      Suppress underscore warning for cgo functions · b8599f7d
      Bryan Mills authored
      This change suppresses the warning for functions which are:
      1. exported to C via a cgo "//export" comment, and
      2. not exported in the Go package.
      
      That allows functions exported to C to use idiomatic C names, but
      still requires that they not pollute the exported Go API.
      
      Fixes #144
      b8599f7d
  30. 09 Feb, 2017 1 commit
  31. 03 Feb, 2017 2 commits