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

sds / scss-lint / 1111
96%
master: 96%

Build:
Build:
LAST BUILD BRANCH: patch-1
DEFAULT BRANCH: master
Ran 05 Feb 2016 06:36PM UTC
Jobs 5
Files 87
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

pending completion
1111

push

travis-ci

lencioni
Enable universal newline when reading scss files

SCSS-Lint seems to choke on a file that uses windows-style newlines with
carriage returns. (To type a windows-style newline with carriage return
in Vim, press <Ctrl>+v<Ctrl>+m in insert mode. This will show up as ^M.)

> SCSSLint::Linter::Indentation raised unexpected error linting file
> ./path/to/file.scss: 'undefined method `[]' for nil:NilClass'

To avoid this, we can encode the file contents using String#encode's
:universal_newline option, which

> Replaces CRLF (“rn”) and CR (“r”) with LF (“n”) if value is true.

http://ruby-doc.org/core-2.2.0/String.html#method-i-encode

I thought that maybe we wouldn't need the force_encoding anymore after
this change, but that was not the case since the test that was added
with that change started failing once I removed the force_encoding.

Fixes #700.

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

2646 of 2751 relevant lines covered (96.18%)

1391.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1111.1 (1.9.3) 05 Feb 2016 06:36PM UTC 0
96.33
Travis Job 1111.1
2 1111.2 (2.0.0) 05 Feb 2016 06:36PM UTC 0
96.28
Travis Job 1111.2
4 1111.4 (2.2) 05 Feb 2016 06:36PM UTC 0
96.28
Travis Job 1111.4
5 1111.5 (2.3.0) 05 Feb 2016 06:36PM UTC 0
96.28
Travis Job 1111.5
6 1111.6 (jruby-19mode) 05 Feb 2016 06:38PM UTC 0
95.0
Travis Job 1111.6
Source Files on build 1111
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1111
  • e338e4f3 on github
  • Next Build on universal-newline (#1113)
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