Skip to content

Commit 55f1d0d

Browse files
committed
-go fmt all .go file
1 parent a9910f0 commit 55f1d0d

File tree

6 files changed

+15
-11
lines changed

6 files changed

+15
-11
lines changed

engine/processbar/processbar.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
"sync/atomic"
2121
"time"
2222

23-
"github.com/reconquest/loreley"
2423
"github.com/reconquest/barely"
24+
"github.com/reconquest/loreley"
2525
)
2626

2727
// LinterProcessBar provides a function to display the current progress of

linters/aligncheck/aligncheck.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ func (l *LinterAligncheck) ComputeMetric(projectPath string) []string {
116116
var stdSizes = types.StdSizes{
117117
WordSize: int64(unsafe.Sizeof(int(0))),
118118
MaxAlign: 8,
119-
}
119+
}

linters/depth/godepth_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
package depth
22

33
import (
4-
"testing"
4+
"testing"
55
)
66

77
func Test_Depth(t *testing.T) {
88
Depth("../copycheck")
99
}
10-

linters/golint/testdata/blank-import-lib.go

+8-4
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@ package foo
66
// The instructions need to go before the imports below so they will not be
77
// mistaken for documentation.
88

9-
/* MATCH /blank import/ */ import _ "encoding/json"
9+
/* MATCH /blank import/ */
10+
import _ "encoding/json"
1011

1112
import (
1213
"fmt"
1314

14-
/* MATCH /blank import/ */ _ "os"
15+
/* MATCH /blank import/ */
16+
_ "os"
1517

16-
/* MATCH /blank import/ */ _ "net/http"
18+
/* MATCH /blank import/ */
19+
_ "net/http"
1720
_ "path"
1821
)
1922

@@ -24,7 +27,8 @@ import (
2427
_ "compress/zlib"
2528
_ "syscall"
2629

27-
/* MATCH /blank import/ */ _ "path/filepath"
30+
/* MATCH /blank import/ */
31+
_ "path/filepath"
2832
)
2933

3034
import (

linters/simplecode/testdata/LintStringCopy.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package pkg
22

33
func fn(s string) {
44
_ = string([]byte(s)) // MATCH "should use s instead of string([]byte(s))"
5-
_ = "" + s // MATCH /should use s instead of "" \+ s/
6-
_ = s + "" // MATCH /should use s instead of s \+ ""/
5+
_ = "" + s // MATCH /should use s instead of "" \+ s/
6+
_ = s + "" // MATCH /should use s instead of s \+ ""/
77

88
_ = s
99
_ = s + "foo"

linters/simpler/ssa/testdata/valueforexpr.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ func f(spilled, unspilled int) {
1515

1616
f := func() (int, int) { return 0, 0 }
1717

18-
/*@Call*/ (print( /*@BinOp*/ (i + 1)))
18+
/*@Call*/
19+
(print( /*@BinOp*/ (i + 1)))
1920
_, _ = /*@Call*/ (f())
2021
ch := /*@MakeChan*/ (make(chan int))
2122
/*@UnOp*/ (<-ch)

0 commit comments

Comments
 (0)