diff --git a/engine/processbar/processbar.go b/engine/processbar/processbar.go index 8a05edc..8d6193a 100644 --- a/engine/processbar/processbar.go +++ b/engine/processbar/processbar.go @@ -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 diff --git a/linters/aligncheck/aligncheck.go b/linters/aligncheck/aligncheck.go index 862826a..646a856 100644 --- a/linters/aligncheck/aligncheck.go +++ b/linters/aligncheck/aligncheck.go @@ -116,4 +116,4 @@ func (l *LinterAligncheck) ComputeMetric(projectPath string) []string { var stdSizes = types.StdSizes{ WordSize: int64(unsafe.Sizeof(int(0))), MaxAlign: 8, -} \ No newline at end of file +} diff --git a/linters/depth/godepth_test.go b/linters/depth/godepth_test.go index 9ac3ec2..266f9bc 100644 --- a/linters/depth/godepth_test.go +++ b/linters/depth/godepth_test.go @@ -1,10 +1,9 @@ package depth import ( -"testing" + "testing" ) func Test_Depth(t *testing.T) { Depth("../copycheck") } - diff --git a/linters/golint/testdata/blank-import-lib.go b/linters/golint/testdata/blank-import-lib.go index fe1eb50..aa1cc74 100755 --- a/linters/golint/testdata/blank-import-lib.go +++ b/linters/golint/testdata/blank-import-lib.go @@ -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" ) @@ -24,7 +27,8 @@ import ( _ "compress/zlib" _ "syscall" - /* MATCH /blank import/ */ _ "path/filepath" + /* MATCH /blank import/ */ + _ "path/filepath" ) import ( diff --git a/linters/simplecode/testdata/LintStringCopy.go b/linters/simplecode/testdata/LintStringCopy.go index f360224..800852c 100755 --- a/linters/simplecode/testdata/LintStringCopy.go +++ b/linters/simplecode/testdata/LintStringCopy.go @@ -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" diff --git a/linters/simpler/ssa/testdata/valueforexpr.go b/linters/simpler/ssa/testdata/valueforexpr.go index 0a561c3..71ec512 100755 --- a/linters/simpler/ssa/testdata/valueforexpr.go +++ b/linters/simpler/ssa/testdata/valueforexpr.go @@ -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)