nilaway icon indicating copy to clipboard operation
nilaway copied to clipboard

Static analysis tool to detect potential nil panics in Go code

Results 116 nilaway issues
Sort by recently updated
recently updated
newest added

```go var file *http.Response for _, url := range urlsToTry { file, err = http.Get(url) if err == nil { break } } if err != nil { return nil,...

needs triaging

Currently in NilAway we forbid sending to and receiving from nilable channels by creating corresponding consumers for them. However, in practice this will not result in panics. See the following...

false positive
channels

A lot of analysis tools produce a summary line at the completion which shows things like how many warnings, errors etc. I feel this would be a valuable addition to...

enhancement
driver

I tried running nilaway cmd for our internal project, but it failed with the following error ``` internal/app/xxx/domain/task.go:244:18: undefined: settings.XXXXX ``` settings.XXXXX is indeed defined in a source file with...

help wanted
driver

- Move the test utility stuff to a separate package (say, `internal/nilawaytest`) as discussed in PR #86 - address other refactoring suggestions discussed in PR #80

refactoring

We had faced a nil pointer error in this [line](https://github.com/snapp-incubator/s3-operator/blob/5052540a0ce00b0b06ee8a1fc596a94b5a661d53/internal/controllers/s3userclaim/provisioner.go#L330) of the project in the runtime. I checked it out with Nilaway with this command since I knew it was...

question

``` $ nilaway -debug fpstv ./... 14:25:35.972386 load [./...] 14:25:43.019609 building graph of analysis passes /usr/local/go/src/runtime/internal/atomic/unaligned.go:7:6: object func atomic.panicUnaligned() has fact noReturn /usr/local/go/src/runtime/cgocallback.go:11:6: object func runtime._cgo_panic_internal(p *byte) has fact noReturn...

bug

I'm having trouble using Nilaway to detect nil pointers in the [S3 Operator](https://github.com/snapp-incubator/s3-operator) project. My OS hangs due to high memory and CPU usage. They are totally utilized by Nilaway....

documentation
enhancement

It's common to for code like this in Go ``` go package somepackage import ( "context" ) type OrderRequest struct { OrderID string } type OrderObserver interface { ObserveOrder(ctx context.Context,...

feature structinit

First of all I love this library and think it is a great addition to the Golang community, thank you for your hard work for it. I got a nil...

feature type assertion
false negative