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

yast / rubocop-yast / 95
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: rc048
DEFAULT BRANCH: master
Ran 11 Dec 2015 12:41PM UTC
Jobs 1
Files 15
Run time 1s
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

pending completion
95

push

travis-ci

mvidner
Fix false positive by Lint/UselessAssignment.

This code would wrongly produce a UselessAssignment on "myvar=0"
```
def useless_assignment_bug
  myvar = 0

  if cond
    myvar = nil               # 'myvar = 1' makes the bug go away
    bar if baz                # 'bar' kills the bug
  end

  myvar
end
```

because on_if did not return `node` and therefore this cop managed to
confuse another cop.

392 of 406 relevant lines covered (96.55%)

20.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 95.1 (2.1) 11 Dec 2015 12:41PM UTC 0
96.55
Travis Job 95.1
Source Files on build 95
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #95
  • b2e63cb7 on github
  • Prev Build on track-niceness (#94)
  • Next Build on track-niceness (#98)
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