-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps): bump github.com/sashamelentyev/usestdlibvars from 1.27.0…
… to 1.28.0 (#5263) Co-authored-by: Fernandez Ludovic <[email protected]>
- Loading branch information
1 parent
cf4c529
commit 11d508e
Showing
6 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
pkg/golinters/usestdlibvars/testdata/fix/in/usestdlibvars.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//golangcitest:args -Eusestdlibvars | ||
//golangcitest:expected_exitcode 0 | ||
package testdata | ||
|
||
import "net/http" | ||
|
||
func _200() { | ||
_ = 200 | ||
} | ||
|
||
func _200_1() { | ||
var w http.ResponseWriter | ||
w.WriteHeader(200) // want `"200" can be replaced by http.StatusOK` | ||
} |
14 changes: 14 additions & 0 deletions
14
pkg/golinters/usestdlibvars/testdata/fix/out/usestdlibvars.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//golangcitest:args -Eusestdlibvars | ||
//golangcitest:expected_exitcode 0 | ||
package testdata | ||
|
||
import "net/http" | ||
|
||
func _200() { | ||
_ = 200 | ||
} | ||
|
||
func _200_1() { | ||
var w http.ResponseWriter | ||
w.WriteHeader(http.StatusOK) // want `"200" can be replaced by http.StatusOK` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters