Skip to content

issues Search Results · repo:uber-go/nilaway language:Go

Filter by

150 results
 (70 ms)

150 results

inuber-go/nilaway (press backspace or delete to remove)

After updating to the March 7 release, we re seeing panics when running nilaway as a gcl plugin. level=error msg= [linters_context/goanalysis] buildir: panic during analysis: internal error: unhandled ...
  • effati
  • Opened 
    6 hours ago
  • #308

func Wrapf(e error) error { if e == nil { return nil } return fmt.Errorf( wrapped: %w , e) } func retPtrError() (*int, error) { err := errors.New( some error ) if err != nil { return nil, errorreturn.Wrapf(err) ...
enhancement
  • sonalmahajan15
  • Opened 
    2 days ago
  • #307

When running nilaway on the following code, I noticed that fields initialized as nil in the constructor are not being detected. The output is as follows: package main import ( fmt ) func main() { ...
  • k-omotani
  • Opened 
    19 days ago
  • #301

type StringSlice []string func (r StringSlice) hello() { fmt.Println( hello ) } func main() { res := map[string]StringSlice{} res[ bla ].hello() }
false positive
  • sonalmahajan15
  • Opened 
    26 days ago
  • #300

Hello team, I am currently trying to add nilaway to my makefile, my intention is to run make nilaway and for it to analyze the modified files only. So imagine my repository is the following: pkg ...
  • mahinkhankishizade
  • Opened 
    27 days ago
  • #299

Fix behavior when a nil slice is returned as in the case below. type myIntSlice []int func (r myIntSlice) Count() int { count := 0 for _, e := range r { count = count + e } return count } func ...
false positive
  • sonalmahajan15
  • Opened 
    on Feb 4
  • #298

it seems there are no other tags. What is the support status for Golang versions below 1.22?
question
  • ParlamLiao
  • 1
  • Opened 
    on Jan 13
  • #297

Nilaway fail to get the correct answer when using errgroup(case1). But it works fine in normal case(case2). package main import ( context fmt golang.org/x/sync/errgroup ) func getData(s string) ...
  • QianKuang8
  • Opened 
    on Dec 5, 2024
  • #296

Case 1 use switch and case 2 use if. Both of them are failed. package main import fmt // not OK func case1() { var s *string var err error situation := 1 switch situation { case 1: tmp := ...
  • QianKuang8
  • Opened 
    on Dec 2, 2024
  • #295

Case 2 would cause an error in Nilaway. IMO, it looks like a false positive case. package main import fmt func main() { var data []int // case 1: OK if len(data) == 1 { fmt.Println(data[0]) ...
  • QianKuang8
  • Opened 
    on Dec 1, 2024
  • #294
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub