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

sds / slim-lint / 232
100%

Build:
DEFAULT BRANCH: master
Ran 16 Nov 2017 07:20AM UTC
Jobs 4
Files 49
Run time 57s
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
232

push

travis-ci

sds
Don't report "no blank line" if file is empty

Prior to this commit, there was no way to make slim-lint happy if a
.slim file was completely blank. If the file was empty (0 bytes), then
slim-lint would report:

empty.slim:0 [W] TrailingBlankLines: No blank line in the end of file

However, if a newline was added (i.e. such that the file contains
exactly "\n"), then it would still report, this time with different
warnings:

empty.slim:1 [W] EmptyLines: Extra empty line detected
empty.slim:1 [W] TrailingBlankLines: Multiple empty lines in the end of file

This commit fixes the problem by gracefully handling empty files without
reporting any warnings.

1 of 1 new or added line in 1 file covered. (100.0%)

937 of 937 relevant lines covered (100.0%)

288.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 232.1 (2.1) 16 Nov 2017 07:20AM UTC 0
100.0
Travis Job 232.1
2 232.2 (2.2) 16 Nov 2017 07:21AM UTC 0
100.0
Travis Job 232.2
3 232.3 (2.3) 16 Nov 2017 07:21AM UTC 0
100.0
Travis Job 232.3
4 232.4 (2.4) 16 Nov 2017 07:20AM UTC 0
100.0
Travis Job 232.4
Source Files on build 232
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #232
  • 08e8601f on github
  • Prev Build on master (#230)
  • Next Build on master (#233)
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