1
0
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:
Marcin Federowicz
2023-10-27 07:26:27 +02:00
committed by GitHub
parent 1ef3c0f554
commit bcae8c78ca
6 changed files with 11 additions and 11 deletions

View File

@@ -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/

View File

@@ -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/

View File

@@ -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)