Skip to content

Commit

Permalink
-go fmt all .go file
Browse files Browse the repository at this point in the history
  • Loading branch information
wgliang committed Oct 24, 2017
1 parent a9910f0 commit 55f1d0d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion engine/processbar/processbar.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"sync/atomic"
"time"

"github.com/reconquest/loreley"
"github.com/reconquest/barely"
"github.com/reconquest/loreley"
)

// LinterProcessBar provides a function to display the current progress of
Expand Down
2 changes: 1 addition & 1 deletion linters/aligncheck/aligncheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ func (l *LinterAligncheck) ComputeMetric(projectPath string) []string {
var stdSizes = types.StdSizes{
WordSize: int64(unsafe.Sizeof(int(0))),
MaxAlign: 8,
}
}
3 changes: 1 addition & 2 deletions linters/depth/godepth_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package depth

import (
"testing"
"testing"
)

func Test_Depth(t *testing.T) {
Depth("../copycheck")
}

12 changes: 8 additions & 4 deletions linters/golint/testdata/blank-import-lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ package foo
// The instructions need to go before the imports below so they will not be
// mistaken for documentation.

/* MATCH /blank import/ */ import _ "encoding/json"
/* MATCH /blank import/ */
import _ "encoding/json"

import (
"fmt"

/* MATCH /blank import/ */ _ "os"
/* MATCH /blank import/ */
_ "os"

/* MATCH /blank import/ */ _ "net/http"
/* MATCH /blank import/ */
_ "net/http"
_ "path"
)

Expand All @@ -24,7 +27,8 @@ import (
_ "compress/zlib"
_ "syscall"

/* MATCH /blank import/ */ _ "path/filepath"
/* MATCH /blank import/ */
_ "path/filepath"
)

import (
Expand Down
4 changes: 2 additions & 2 deletions linters/simplecode/testdata/LintStringCopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package pkg

func fn(s string) {
_ = string([]byte(s)) // MATCH "should use s instead of string([]byte(s))"
_ = "" + s // MATCH /should use s instead of "" \+ s/
_ = s + "" // MATCH /should use s instead of s \+ ""/
_ = "" + s // MATCH /should use s instead of "" \+ s/
_ = s + "" // MATCH /should use s instead of s \+ ""/

_ = s
_ = s + "foo"
Expand Down
3 changes: 2 additions & 1 deletion linters/simpler/ssa/testdata/valueforexpr.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ func f(spilled, unspilled int) {

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

/*@Call*/ (print( /*@BinOp*/ (i + 1)))
/*@Call*/
(print( /*@BinOp*/ (i + 1)))
_, _ = /*@Call*/ (f())
ch := /*@MakeChan*/ (make(chan int))
/*@UnOp*/ (<-ch)
Expand Down

0 comments on commit 55f1d0d

Please sign in to comment.