Skip to content
This repository has been archived by the owner on Feb 3, 2018. It is now read-only.

Refactor reachmaps #148

Merged
merged 18 commits into from
Feb 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions _testdata/src/cycle/a.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package cycle

import (
"cycle/one"
"github.com/sdboyer/gps"
)

var (
A = gps.Solve

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported var A should have comment or be unexported

B = one.A
)
11 changes: 11 additions & 0 deletions _testdata/src/cycle/one/a.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package one

import (
"cycle/two"
"github.com/sdboyer/gps"
)

var (
A = gps.Solve

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported var A should have comment or be unexported

B = two.A
)
11 changes: 11 additions & 0 deletions _testdata/src/cycle/two/a.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package two

import (
"cycle"
"github.com/sdboyer/gps"
)

var (
A = gps.Solve

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported var A should have comment or be unexported

B = cycle.A
)
13 changes: 13 additions & 0 deletions _testdata/src/github.com/example/varied/locals.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package main

import (
"github.com/example/varied/namemismatch"
"github.com/example/varied/otherpath"
"github.com/example/varied/simple"
)

var (
_ = simple.S
_ = nm.V
_ = otherpath.O
)
12 changes: 12 additions & 0 deletions _testdata/src/github.com/example/varied/m1p/a.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package m1p

import (
"sort"

"github.com/sdboyer/gps"
)

var (
M = sort.Strings

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported var M should have comment or be unexported

_ = gps.Solve
)
11 changes: 11 additions & 0 deletions _testdata/src/github.com/example/varied/m1p/b.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package m1p

import (
"os"
"sort"
)

var (
_ = sort.Strings
_ = os.PathSeparator
)
9 changes: 9 additions & 0 deletions _testdata/src/github.com/example/varied/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package main

import (
"net/http"
)

var (
_ = http.Client
)
12 changes: 12 additions & 0 deletions _testdata/src/github.com/example/varied/namemismatch/nm.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package nm

import (
"os"

"github.com/Masterminds/semver"
)

var (
V = os.FileInfo

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported var V should have comment or be unexported

_ = semver.Constraint
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package otherpath

import "github.com/example/varied/m1p"

var O = m1p.M
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package another

import "hash"

var (
H = hash.Hash

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported var H should have comment or be unexported

)
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package another

import "encoding/binary"

var (
_ = binary.PutVarint
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package another

import "github.com/example/varied/m1p"

var _ = m1p.M
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package simple

import "github.com/example/varied/simple/another"

var (
_ = another.H
)
12 changes: 12 additions & 0 deletions _testdata/src/github.com/example/varied/simple/simple.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package simple

import (
"go/parser"

"github.com/sdboyer/gps"
)

var (
_ = parser.ParseFile
S = gps.Prepare

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported var S should have comment or be unexported

)
9 changes: 9 additions & 0 deletions _testdata/src/relimport/a.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package relimport

import (
"sort"
)

var (
A = sort.Strings

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported var A should have comment or be unexported

)
10 changes: 10 additions & 0 deletions _testdata/src/relimport/dot/a.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package dot

import (
"."
"sort"
)

var (
A = sort.Strings

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported var A should have comment or be unexported

)
9 changes: 9 additions & 0 deletions _testdata/src/relimport/dotdot/a.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package dotdot

import (
relimport ".."
)

var (
A = relimport.A

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported var A should have comment or be unexported

)
9 changes: 9 additions & 0 deletions _testdata/src/relimport/dotdotslash/a.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package dotslash

import (
"../github.com/sdboyer/gps"
)

var (
A = gps.Solver

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported var A should have comment or be unexported

)
9 changes: 9 additions & 0 deletions _testdata/src/relimport/dotslash/a.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package dotslash

import (
"./simple"
)

var (
A = simple.A

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported var A should have comment or be unexported

)
Loading