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

bombsimon / wsl / 16017641091
92%

Build:
DEFAULT BRANCH: main
Ran 02 Jul 2025 06:21AM UTC
Jobs 1
Files 4
Run time 1min
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

02 Jul 2025 06:20AM UTC coverage: 93.837% (-0.6%) from 94.44%
16017641091

push

github

web-flow
Make error checking more laxed (#184)

Only perform error checking when there's a single comparison with a
binary operator comparing an error with `nil`. Both `!=` and `==` are
candidates for cuddling.

These should be cuddled if `err` exist on the line above

```go
if err != nil {}

if err == nil {}
```

Nothing else should trigger this lint, all of these should be left

```go
// More than error checking
if err != nil || true {}

// Technically an error checking, but we only check for binary
// operators, not expressions.
if errors.Is(err, SomeErr) {}

// More than one error checking
if err != nil || err2 != nil {}
```

This also matches [`gofumpt`](https://github.com/mvdan/gofumpt) which
has this rule:

> No empty lines before a simple error check
>
> ```go
> foo, err := processFoo()
>
> if err != nil {
> 	return err
> }
> ```
>
> ```go
> foo, err := processFoo()
> if err != nil {
> 	return err
> }
> ```

21 of 25 new or added lines in 1 file covered. (84.0%)

6 existing lines in 1 file now uncovered.

1142 of 1217 relevant lines covered (93.84%)

168.44 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
94.68
-0.83% wsl.go

Uncovered Existing Lines

Lines Coverage ∆ File
6
94.68
-0.83% wsl.go
Jobs
ID Job ID Ran Files Coverage
1 16017641091.1 02 Jul 2025 06:21AM UTC 4
93.84
GitHub Action Run
Source Files on build 16017641091
  • Tree
  • List 4
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ebb08fc0 on github
  • Prev Build on main (#15947831846)
  • Next Build on main (#16294247363)
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