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

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

Build:
Build:
LAST BUILD BRANCH: patch-1
DEFAULT BRANCH: master
Ran 05 Feb 2016 06:36PM UTC
Files 87
Run time 2s
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 Feb 2016 06:36PM UTC coverage: 96.329%. First build
1.9.3

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.

2519 of 2615 relevant lines covered (96.33%)

360.29 hits per line

Source Files on job 1111.1 (1.9.3)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1111
  • Travis Job 1111.1
  • e338e4f3 on github
  • Next Job for 1.9.3 on universal-newline (#1113.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