• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bombsimon / wsl / 18261648383 / 1
92%
main: 92%

Build:
DEFAULT BRANCH: main
Ran 05 Oct 2025 04:56PM UTC
Files 4
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Oct 2025 04:56PM UTC coverage: 91.648% (+0.1%) from 91.527%
18261648383.1

push

github

web-flow
Ignore idents for constants, types, packages and nil (#201)

* Ignore idents for constants, types, packages and nil

There are a lot of nodes that holds an `*ast.Ident` that's not a name
that's declared by the user in the code. This can be things like
constants such as `true` or `false`, or just a type name such as
`string` in the statement `var a string`.

We never want to treat them as idents when looking for intersection
because they're not related to the code written by the user.

In this example:

```go
var z string
defer func(x string) {}("")
```

There are no intersections, only `z` on 1st line and `x` on 2nd line,
but faulty identifying `string` on both lines result in a false negative
where a non existing intersection is found.

We now make use of the types info we get from the analysis pass and
ignore type names, constants, nil and package names.

Fixes #199

* Fix newly discovered violation

1240 of 1353 relevant lines covered (91.65%)

177.52 hits per line

Source Files on job 18261648383.1
  • Tree
  • List 4
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 18261648383
  • 5c202af7 on github
  • Prev Job for on main (#18244519795.1)
  • Next Job for on main (#18261759924.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc