mirror of
https://github.com/mgechev/revive.git
synced 2025-11-23 22:04:49 +02:00
fix trailing whitespaces (#917)
This commit is contained in:
committed by
GitHub
parent
1ef3c0f554
commit
bcae8c78ca
2
testdata/confusing-results.go
vendored
2
testdata/confusing-results.go
vendored
@@ -4,7 +4,7 @@ func getfoo() (int, int, error) { // MATCH /unnamed results of the same type may
|
||||
|
||||
}
|
||||
|
||||
func getBar(a, b int) (int, error, int) {
|
||||
func getBar(a, b int) (int, error, int) {
|
||||
}
|
||||
|
||||
func Getbaz(a string, b int) (int, float32, string, string) { // MATCH /unnamed results of the same type may be confusing, consider using named results/
|
||||
|
||||
2
testdata/duplicated-imports.go
vendored
2
testdata/duplicated-imports.go
vendored
@@ -1,7 +1,7 @@
|
||||
package fixtures
|
||||
|
||||
import(
|
||||
"crypto/md5"
|
||||
"crypto/md5"
|
||||
"strings"
|
||||
_ "crypto/md5" // MATCH /Package "crypto/md5" already imported/
|
||||
str "strings" // MATCH /Package "strings" already imported/
|
||||
|
||||
2
testdata/golint/error-strings.go
vendored
2
testdata/golint/error-strings.go
vendored
@@ -16,7 +16,7 @@ func g(x int) error {
|
||||
err = fmt.Errorf("Newlines are really fun\n") // MATCH /error strings should not be capitalized or end with punctuation or a newline/
|
||||
err = errors.New(`too much stuff.`) // MATCH /error strings should not be capitalized or end with punctuation or a newline/
|
||||
err = errors.New("This %d is too low", x) // MATCH /error strings should not be capitalized or end with punctuation or a newline/
|
||||
|
||||
|
||||
// Non-regression test for issue #610
|
||||
d.stack.Push(from)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user