Skip to content

Commit a2c3e11

Browse files
committed
skip import check
1 parent 6a615a9 commit a2c3e11

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contextcheck.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func NewRun(pkgs []*packages.Package, disableFact bool) func(pass *analysis.Pass
9494
}
9595
return func(pass *analysis.Pass) (interface{}, error) {
9696
// skip different repo
97-
if !m[strings.Split(pass.Pkg.Path(), "/")[0]] {
97+
if len(m) > 0 && !m[strings.Split(pass.Pkg.Path(), "/")[0]] {
9898
return nil, nil
9999
}
100100

@@ -221,9 +221,9 @@ func (r *runner) noImportedContextAndHttp(f *ssa.Function) (ret bool) {
221221
}
222222

223223
func (r *runner) checkIsEntry(f *ssa.Function) entryType {
224-
if r.noImportedContextAndHttp(f) {
225-
return EntryNormal
226-
}
224+
// if r.noImportedContextAndHttp(f) {
225+
// return EntryNormal
226+
// }
227227

228228
ctxIn, ctxOut := r.checkIsCtx(f)
229229
if ctxOut {

0 commit comments

Comments
 (0)